public function testMockingExecuteWithNoParamWillCauseItToReturnNull()
 {
     $qbm = new QueryBuilderMocker($this);
     $qbm->getQuery()->execute();
     $qb = $qbm->getQueryBuilderMock();
     $result = $qb->getQuery()->execute();
     $this->assertNull($result);
 }
 /**
  * @author Lauri Orgla <*****@*****.**>
  * @covers \MMoussa\Doctrine\Test\ORM\QueryBuilderMocker::getQueryMock
  */
 public function testGetQueryMockReturnsMockObject()
 {
     $qbm = new QueryBuilderMocker($this);
     $qbm->getQuery()->execute();
     $queryMock = $qbm->getQueryMock();
     $queryBuilderMock = $qbm->getQueryBuilderMock();
     $this->assertInstanceOf('\\PHPUnit_Framework_MockObject_MockObject', $queryMock);
     $this->assertNull($queryBuilderMock->getQuery()->execute());
 }