public function PromiseTest::testCannotResolveNonPendingPromise in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/promises/tests/PromiseTest.php \GuzzleHttp\Promise\Tests\PromiseTest::testCannotResolveNonPendingPromise()
@expectedException \LogicException @expectedExceptionMessage The promise is already fulfilled
File
- vendor/
guzzlehttp/ promises/ tests/ PromiseTest.php, line 19
Class
Namespace
GuzzleHttp\Promise\TestsCode
public function testCannotResolveNonPendingPromise() {
$p = new Promise();
$p
->resolve('foo');
$p
->resolve('bar');
$this
->assertEquals('foo', $p
->wait());
}