1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 21:31:18 +01:00
amp/test/PromiseTest.php
Aaron Piotrowski 7cd505342a Update PromiseTest
setUp() and tearDown() code moved to async-interop/promise-test
2016-12-30 13:01:09 -06:00

22 lines
385 B
PHP

<?php
namespace Amp\Test;
class Promise {
use \Amp\Internal\Placeholder {
resolve as public;
fail as public;
}
}
class PromiseTest extends \Interop\Async\Promise\Test {
public function promise() {
$promise = new Promise;
return [
$promise,
[$promise, 'resolve'],
[$promise, 'fail'],
];
}
}