diff --git a/tests/Pipeline/SimpleTest.php b/tests/Pipeline/SimpleTest.php index e26ac23..1375a9e 100644 --- a/tests/Pipeline/SimpleTest.php +++ b/tests/Pipeline/SimpleTest.php @@ -176,6 +176,13 @@ public function testToArray() $this->assertEquals(range(1, 10), $pipeline->toArray()); } + public function testReduceEmpty() + { + $pipeline = new Standard(); + + $this->assertSame(0, $pipeline->reduce()); + } + public function testMeaningless() { $pipeline = new Simple(new \ArrayIterator([]));