public testGetIteratorShouldThrowExceptionWithoutExecutingForTypesThatDoNotReturnAnIterator ( $type, $method ) |
public function testGetIteratorShouldThrowExceptionWithoutExecutingForTypesThatDoNotReturnAnIterator($type, $method)
{
$collection = $this->getMockCollection();
$collection->expects($this->never())->method($method);
$query = new Query($collection, ['type' => $type], []);
$query->getIterator();
}