diff --git a/tests/Pipeline/SimpleTest.php b/tests/Pipeline/SimpleTest.php index 0b728f7..e26ac23 100644 --- a/tests/Pipeline/SimpleTest.php +++ b/tests/Pipeline/SimpleTest.php @@ -24,6 +24,17 @@ class SimpleTest extends TestCase public function testEmpty() { $this->assertEquals([], iterator_to_array(new Simple())); + + $this->assertSame(0, iterator_count(new Standard())); + } + + public function testEmptyPHPUnitWise() + { + try { + $this->assertCount(0, new Standard()); + } catch (\BadMethodCallException $e) { + $this->markTestIncomplete($e->getMessage()); + } } public function testSingle()