for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Doctrine\Tests\ORM;
use Doctrine\Tests\Models\CMS\CmsUser;
use Doctrine\Tests\OrmTestCase;
/**
* Test case for the Query class
*
* @author Konstantin Kuklin <[email protected]>
*/
class QueryTest extends OrmTestCase
{
* @var \Doctrine\ORM\EntityManager
private $_em;
protected function setUp()
$this->_em = $this->_getTestEntityManager();
}
* setResultCacheProfile should works correct with null
public function testSetResultCacheProfile()
$query = $this->_em->createQuery('SELECT u FROM ' . CmsUser::class . ' u');
$result = $query->setResultCacheProfile(null);
self::assertEquals($result, $query);