public function testReduceEmpty() { $callback = function ($value) { return 'boo!'; }; $collection = new Collection(); $this->assertNull($collection->reduce($callback)); $this->assertSame('foo', $collection->reduce($callback, 'foo')); }