mirror of
https://github.com/danog/amp.git
synced 2025-01-22 21:31:18 +01:00
7cd505342a
setUp() and tearDown() code moved to async-interop/promise-test
22 lines
385 B
PHP
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'],
|
|
];
|
|
}
|
|
}
|