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