tests/UnitTest/Collection/ImmutabilityTest.php
/**
     * @covers ::offsetSet
     * @expectedException \Traver\Exception\UnsupportedOperationException
     */
@covers ::offsetSet
@expectedException \Traver\Exception\UnsupportedOperationException
@covers :: offsetSet @expectedException \ Traver \ Exception \ UnsupportedOperationException
public function testSetException()
    {
        $builder = $this->createBuilder();
        $builder->addAll([1, 2, 3]);
        $collection = $builder->build();
        $collection[0] = 4;
        PHPUnit_Framework_TestCase::fail();
    }
public function testSetException ( ) { $ builder = $ this -> createBuilder ( ) ; $ builder -> addAll ( [ 1 , 2 , 3 ] ) ; $ collection = $ builder -> build ( ) ; $ collection [ 0 ] = 4 ; PHPUnit_Framework_TestCase :: fail ( ) ; }
@covers ::offsetSet
 @expectedException \Traver\Exception\UnsupportedOperationException
@covers :: offsetSet @expectedException \ Traver \ Exception \ UnsupportedOperationException
// given // when // then