Pinq\Tests\Integration\Traversable\UnsupportedTest::testThatSetIndexThrowsAndException PHP Method

testThatSetIndexThrowsAndException() public method

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