1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00

Update PromiseTest

setUp() and tearDown() code moved to async-interop/promise-test
This commit is contained in:
Aaron Piotrowski 2016-12-30 13:01:09 -06:00
parent a872f14fd4
commit 7cd505342a

View File

@ -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,