public function PromiseTest::testCreatesPromiseWhenFulfilledWithNoCallback in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/tests/PromiseTest.php \GuzzleHttp\Promise\Tests\PromiseTest::testCreatesPromiseWhenFulfilledWithNoCallback()
File
- vendor/
guzzlehttp/ promises/ tests/ PromiseTest.php, line 294
Class
Namespace
GuzzleHttp\Promise\TestsCode
public function testCreatesPromiseWhenFulfilledWithNoCallback() {
$p = new Promise();
$p
->resolve('foo');
$p2 = $p
->then();
$this
->assertNotSame($p, $p2);
$this
->assertInstanceOf('GuzzleHttp\\Promise\\FulfilledPromise', $p2);
}