Skip to content

Instantly share code, notes, and snippets.

@samsonasik
Forked from h4cc/doctrine_query_mock.php
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsonasik/185ecbca574d2803cbd5 to your computer and use it in GitHub Desktop.
Save samsonasik/185ecbca574d2803cbd5 to your computer and use it in GitHub Desktop.
<?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