1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 05:11:42 +01:00

Test that promise is actually a promise

This commit is contained in:
Niklas Keller 2017-01-07 14:28:01 +01:00
parent b797e417d8
commit 574172128a

View File

@ -40,6 +40,12 @@ abstract class Test extends \PHPUnit_Framework_TestCase {
];
}
function testPromiseImplementsPromise()
{
list($promise) = $this->promise();
$this->assertInstanceOf(Promise::class, $promise);
}
/** @dataProvider provideSuccessValues */
function testPromiseSucceed($value)
{