tests/UnitTest/Collection/AbstractPipeableTest.php
/**
     * @covers ::reduce
     * @expectedException \Traver\Exception\UnsupportedOperationException
     */
@covers ::reduce
@expectedException \Traver\Exception\UnsupportedOperationException
@covers :: reduce @expectedException \ Traver \ Exception \ UnsupportedOperationException
public function testReduceEmpty()
    {
        $builder = $this->createBuilder();
        $enumerable = $builder->build();
        $enumerable->reduce(function () {
        });
        self::fail();
    }
public function testReduceEmpty ( ) { $ builder = $ this -> createBuilder ( ) ; $ enumerable = $ builder -> build ( ) ; $ enumerable -> reduce ( function ( ) { } ) ; self :: fail ( ) ; }
@covers ::reduce
 @expectedException \Traver\Exception\UnsupportedOperationException
@covers :: reduce @expectedException \ Traver \ Exception \ UnsupportedOperationException
// given // when // then