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