1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 09:27:46 +01:00

Update for phpunit-util changes

This commit is contained in:
Aaron Piotrowski 2021-12-05 10:33:49 -06:00
parent e629cc81e7
commit cb772a5972
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -7,8 +7,8 @@ use Amp\DeferredCancellation;
use Amp\DeferredFuture;
use Amp\Future;
use Amp\PHPUnit\AsyncTestCase;
use Amp\PHPUnit\LoopCaughtException;
use Amp\PHPUnit\TestException;
use Amp\PHPUnit\UnhandledException;
use Amp\TimeoutCancellation;
use Revolt\EventLoop;
use function Amp\async;
@ -192,7 +192,7 @@ class FutureTest extends AsyncTestCase
$deferred->error(new TestException);
unset($deferred);
$this->expectException(LoopCaughtException::class);
$this->expectException(UnhandledException::class);
}
public function testUnhandledErrorFromFutureError(): void
@ -200,7 +200,7 @@ class FutureTest extends AsyncTestCase
$future = Future::error(new TestException);
unset($future);
$this->expectException(LoopCaughtException::class);
$this->expectException(UnhandledException::class);
}
public function testIgnoringUnhandledErrors(): void