public function testResetWithNull() { $this->queue->unknown->push('test1'); $this->queue->unknown->push('test2'); $this->queue->unknown[0] = null; $this->assertSame(array('test2'), iterator_to_array($this->queue)); }