mirror of
https://github.com/danog/amp.git
synced 2025-01-22 21:31:18 +01:00
22 lines
384 B
PHP
22 lines
384 B
PHP
<?php
|
|
|
|
namespace Amp\Test;
|
|
|
|
class Promise {
|
|
use \Amp\Internal\Placeholder {
|
|
resolve as public;
|
|
fail as public;
|
|
}
|
|
}
|
|
|
|
class PromiseTest extends \AsyncInterop\Promise\Test {
|
|
public function promise() {
|
|
$promise = new Promise;
|
|
return [
|
|
$promise,
|
|
[$promise, 'resolve'],
|
|
[$promise, 'fail'],
|
|
];
|
|
}
|
|
}
|