1
0
mirror of synced 2025-01-09 10:37:09 +03:00
doctrine2/tests/Doctrine/Tests/ORM/LazyCriteriaCollectionTest.php

42 lines
998 B
PHP
Raw Normal View History

<?php
namespace Doctrine\Tests\ORM;
2014-05-17 20:48:25 +04:00
use Doctrine\Common\Collections\Criteria;
use Doctrine\ORM\LazyCriteriaCollection;
use Doctrine\Tests\Mocks\ConnectionMock;
use PHPUnit_Framework_TestCase;
/**
* @author Marco Pivetta <ocramius@gmail.com>
*
* @covers \Doctrine\ORM\LazyCriteriaCollection
*/
class LazyCriteriaCollectionTest extends PHPUnit_Framework_TestCase
{
2014-05-17 20:48:25 +04:00
/**
* @var \Doctrine\ORM\Persisters\EntityPersister|\PHPUnit_Framework_MockObject_MockObject
*/
private $persister;
/**
* @var Criteria
*/
private $criteria;
/**
* @var LazyCriteriaCollection
*/
private $lazyCriteriaCollection;
/**
* {@inheritDoc}
*/
protected function setUp()
{
2014-05-17 20:48:25 +04:00
$this->persister = $this->getMock('Doctrine\ORM\Persisters\EntityPersister');
$this->criteria = new Criteria();
$this->$lazyCriteriaCollection = new LazyCriteriaCollection($this->persister, $this->criteria);
}
}