1
0
mirror of https://github.com/danog/amp.git synced 2024-12-13 09:57:25 +01:00
amp/test/PromisorPublicTest.php

18 lines
372 B
PHP
Raw Normal View History

2014-09-22 22:47:48 +02:00
<?php
2014-09-23 04:38:32 +02:00
namespace Amp\Test;
2014-09-22 22:47:48 +02:00
use Amp\Promisor;
use Amp\Test\PromisorPublicImpl;
2014-09-22 22:47:48 +02:00
class PromisorPublicTest extends PromisorTest {
protected function getPromisor() {
return new PromisorPublicImpl;
2015-03-16 20:04:01 +01:00
}
2014-09-22 22:47:48 +02:00
public function testPromiseReturnsSelf() {
$promisor = new PromisorPublicImpl;
$this->assertSame($promisor, $promisor->promise());
2014-09-22 22:47:48 +02:00
}
}