mirror of
https://github.com/danog/amp.git
synced 2024-12-04 18:38:17 +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());
|
|
}
|
|
}
|