Fixed vendor version mismatch in tests

This commit is contained in:
Arnout Boks 2011-12-08 18:09:06 +01:00
parent 28730e9149
commit 4fe4dfd116

View File

@ -113,14 +113,14 @@ class DoctrineDataCollectorTest extends \PHPUnit_Framework_TestCase
private function createCollector($queries)
{
$registry = $this->getMock('Doctrine\Common\Persistence\ManagerRegistry');
$registry = $this->getMock('Symfony\Bridge\Doctrine\RegistryInterface');
$registry
->expects($this->once())
->expects($this->any())
->method('getConnectionNames')
->will($this->returnValue(array('default' => 'doctrine.dbal.default_connection')));
$registry
->expects($this->once())
->method('getManagerNames')
->expects($this->any())
->method('getEntityManagerNames')
->will($this->returnValue(array('default' => 'doctrine.orm.default_entity_manager')));
$logger = $this->getMock('Symfony\Bridge\Doctrine\Logger\DbalLogger');