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