public function testThatSetIndexThrowsAndException(\Pinq\ITraversable $traversable, array $data) { if (!$traversable instanceof \Pinq\ICollection) { $this->setExpectedException('\\Pinq\\PinqException'); $traversable[0] = null; } }