mirror of
https://github.com/danog/amp.git
synced 2024-11-27 04:24:42 +01:00
18 lines
407 B
PHP
18 lines
407 B
PHP
<?php
|
|
|
|
namespace Amp\Test;
|
|
|
|
use Amp\Promisor;
|
|
use Amp\Test\PromisorPublicImpl;
|
|
|
|
class PromisorPublicTest extends PromisorTest {
|
|
protected function getPromisor($callbackData = null) {
|
|
return new PromisorPublicImpl($callbackData);
|
|
}
|
|
|
|
public function testPromiseReturnsSelf() {
|
|
$promisor = new PromisorPublicImpl;
|
|
$this->assertSame($promisor, $promisor->promise());
|
|
}
|
|
}
|