Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// Use the Abstract query, which has nearly all needed Methods as the Query.
$this->queryMock = $this->getMockBuilder('\Doctrine\ORM\AbstractQuery')
->setMethods(array('setParameter', 'getResult'))
->disableOriginalConstructor()
->getMockForAbstractClass();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment