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:
parent
b72e504eab
commit
1369f5fd47
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user