1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 21:31:18 +01:00
amp/test/PromiseTest.php

22 lines
385 B
PHP
Raw Normal View History

<?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'],
];
}
}