mirror of
https://github.com/danog/amp.git
synced 2025-01-22 13:21:16 +01:00
16 lines
304 B
PHP
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());
|
|
}
|
|
}
|