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

Assert callback count

This commit is contained in:
Aaron Piotrowski 2017-02-10 09:41:43 -06:00
parent b72e504eab
commit 1369f5fd47

View File

@ -150,6 +150,8 @@ class MapTest extends \PHPUnit_Framework_TestCase {
$this->assertInstanceOf(Promise::class, $promise);
$this->assertSame(4, Amp\wait($promise));
}
$this->assertSame(3, $count);
}
/**
@ -172,5 +174,7 @@ class MapTest extends \PHPUnit_Framework_TestCase {
foreach ($result as $promise) {
$this->assertSame(4, Amp\wait($promise));
}
$this->assertSame(3, $count);
}
}