public function rewind() { $this->history = array(); parent::rewind(); }
public function testFilter() { $pipe = new FilterPipe(); $pipe->input(array(1, 0, 2, 0, 3, 0, 4, 0)); $this->assertSame(array(0 => 1, 2 => 2, 4 => 3, 6 => 4), $pipe->output()); }