public function FulfilledPromiseTest::testCannotCancel in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/promises/tests/FulfilledPromiseTest.php \GuzzleHttp\Tests\Promise\FulfilledPromiseTest::testCannotCancel()
File
- vendor/
guzzlehttp/ promises/ tests/ FulfilledPromiseTest.php, line 19
Class
Namespace
GuzzleHttp\Tests\PromiseCode
public function testCannotCancel() {
$p = new FulfilledPromise('foo');
$this
->assertEquals('fulfilled', $p
->getState());
$p
->cancel();
$this
->assertEquals('foo', $p
->wait());
}