public function PromiseTest::testCannotRejectResolveWithSameValue in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/promises/tests/PromiseTest.php \GuzzleHttp\Promise\Tests\PromiseTest::testCannotRejectResolveWithSameValue()
@expectedException \LogicException @expectedExceptionMessage Cannot change a fulfilled promise to rejected
File
- vendor/
guzzlehttp/ promises/ tests/ PromiseTest.php, line 57
Class
Namespace
GuzzleHttp\Promise\TestsCode
public function testCannotRejectResolveWithSameValue() {
$p = new Promise();
$p
->resolve('foo');
$p
->reject('foo');
}