mirror of
https://github.com/danog/amp.git
synced 2024-11-26 20:15:00 +01:00
Update PromiseTest
setUp() and tearDown() code moved to async-interop/promise-test
This commit is contained in:
parent
a872f14fd4
commit
7cd505342a
@ -2,8 +2,6 @@
|
||||
|
||||
namespace Amp\Test;
|
||||
|
||||
use Interop\Async\Promise\ErrorHandler;
|
||||
|
||||
class Promise {
|
||||
use \Amp\Internal\Placeholder {
|
||||
resolve as public;
|
||||
@ -12,22 +10,7 @@ class Promise {
|
||||
}
|
||||
|
||||
class PromiseTest extends \Interop\Async\Promise\Test {
|
||||
/** @var callable|null */
|
||||
private $handler;
|
||||
|
||||
function setUp() {
|
||||
// Set error handler to null and store previous handler.
|
||||
$this->handler = ErrorHandler::set();
|
||||
parent::setUp();
|
||||
}
|
||||
|
||||
function tearDown() {
|
||||
// Restore original error handler.
|
||||
ErrorHandler::set($this->handler);
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
function promise() {
|
||||
public function promise() {
|
||||
$promise = new Promise;
|
||||
return [
|
||||
$promise,
|
||||
|
Loading…
Reference in New Issue
Block a user