public function PromiseTest::testCannotRejectResolveWithSameValue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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');
}