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