public function FunctionsTest::testReturnsRejection in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/tests/functionsTest.php \GuzzleHttp\Promise\Tests\FunctionsTest::testReturnsRejection()
File
- vendor/
guzzlehttp/ promises/ tests/ functionsTest.php, line 34
Class
Namespace
GuzzleHttp\Promise\TestsCode
public function testReturnsRejection() {
$p = \GuzzleHttp\Promise\rejection_for('fail');
$this
->assertInstanceOf('GuzzleHttp\\Promise\\RejectedPromise', $p);
$this
->assertEquals('fail', $this
->readAttribute($p, 'reason'));
}