protected function generateMocksCollection(\PHPUnit_Framework_MockObject_MockObject $mock, $repeatFor = 1)
    {
        $collection = [];

        for ($i = 1; $i <= $repeatFor; $i++) {
            $collection[] = clone $mock;
        }

        return $collection;
    }
protected function generateMocksCollection(\PHPUnit_Framework_MockObject_MockObject $mock, $repeatFor = 1)
    {
        $collection = [];

        for ($i = 1; $i <= $repeatFor; $i++) {
            $collection[] = clone $mock;
        }

        return $collection;
    }
protected function generateMocksCollection ( \ PHPUnit_Framework_MockObject_MockObject $ mock , $ repeatFor = 1 ) { $ collection = [ ] ; for ( $ i = 1 ; $ i <= $ repeatFor ; $ i ++ ) { $ collection [ ] = clone $ mock ; } return $ collection ; }
Clone a mock object generating a collection populated with mocks of the same kind.

@param \PHPUnit_Framework_MockObject_MockObject $mock
@param int                                      $repeatFor

@return array
Clone a mock object generating a collection populated with mocks of the same kind .