Commit d46fd8b7 authored by Steve Müller's avatar Steve Müller Committed by Marco Pivetta

fix mocking PDO

parent 8ed556cb
......@@ -140,9 +140,7 @@ class DriverManagerTest extends \Doctrine\Tests\DbalTestCase
public function databaseUrls()
{
$pdoMock = $this->getMockBuilder('PDO')
->disableOriginalConstructor()
->getMock();
$pdoMock = $this->getMock('Doctrine\Tests\Mocks\PDOMock');
return array(
'simple URL' => array(
......
<?php
namespace Doctrine\Tests\Mocks;
class PDOMock extends \PDO
{
public function __construct()
{
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment