1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 13:21:16 +01:00
amp/test/FutureTest.php
2015-03-18 12:13:17 -04:00

16 lines
304 B
PHP

<?php
namespace Amp\Test;
use Amp\Future;
class FutureTest extends PromisorTest {
protected function getPromisor() {
return new Future;
}
public function testPromiseReturnsSelf() {
$promisor = new Future;
$this->assertSame($promisor, $promisor->promise());
}
}