mirror of
https://github.com/danog/amp.git
synced 2024-12-03 09:57:51 +01:00
Update for phpunit-util changes
This commit is contained in:
parent
e629cc81e7
commit
cb772a5972
@ -7,8 +7,8 @@ use Amp\DeferredCancellation;
|
|||||||
use Amp\DeferredFuture;
|
use Amp\DeferredFuture;
|
||||||
use Amp\Future;
|
use Amp\Future;
|
||||||
use Amp\PHPUnit\AsyncTestCase;
|
use Amp\PHPUnit\AsyncTestCase;
|
||||||
use Amp\PHPUnit\LoopCaughtException;
|
|
||||||
use Amp\PHPUnit\TestException;
|
use Amp\PHPUnit\TestException;
|
||||||
|
use Amp\PHPUnit\UnhandledException;
|
||||||
use Amp\TimeoutCancellation;
|
use Amp\TimeoutCancellation;
|
||||||
use Revolt\EventLoop;
|
use Revolt\EventLoop;
|
||||||
use function Amp\async;
|
use function Amp\async;
|
||||||
@ -192,7 +192,7 @@ class FutureTest extends AsyncTestCase
|
|||||||
$deferred->error(new TestException);
|
$deferred->error(new TestException);
|
||||||
unset($deferred);
|
unset($deferred);
|
||||||
|
|
||||||
$this->expectException(LoopCaughtException::class);
|
$this->expectException(UnhandledException::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testUnhandledErrorFromFutureError(): void
|
public function testUnhandledErrorFromFutureError(): void
|
||||||
@ -200,7 +200,7 @@ class FutureTest extends AsyncTestCase
|
|||||||
$future = Future::error(new TestException);
|
$future = Future::error(new TestException);
|
||||||
unset($future);
|
unset($future);
|
||||||
|
|
||||||
$this->expectException(LoopCaughtException::class);
|
$this->expectException(UnhandledException::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testIgnoringUnhandledErrors(): void
|
public function testIgnoringUnhandledErrors(): void
|
||||||
|
Loading…
Reference in New Issue
Block a user