mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-29 00:25:17 +03:00
Fixed tests for PHP7+
This commit is contained in:
parent
fd335a1d13
commit
26db4c76c6
@ -218,6 +218,8 @@ class SyncPromiseTest extends \PHPUnit_Framework_TestCase
|
||||
try {
|
||||
$promise->reject('a');
|
||||
$this->fail('Expected exception not thrown');
|
||||
} catch (\Throwable $e) {
|
||||
$this->assertEquals(SyncPromise::PENDING, $promise->state);
|
||||
} catch (\Exception $e) {
|
||||
$this->assertEquals(SyncPromise::PENDING, $promise->state);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user