From db80b2b1351f055f58a549cbf0cb79b27b92741c Mon Sep 17 00:00:00 2001 From: Guilherme Blanco Date: Tue, 21 Jun 2011 12:38:08 -0300 Subject: [PATCH] Fixed phpunit tests which was failing due to a duplicate use declaration. --- tests/Doctrine/Tests/ORM/Functional/TypeTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/TypeTest.php b/tests/Doctrine/Tests/ORM/Functional/TypeTest.php index a2a738b56..25523bb80 100644 --- a/tests/Doctrine/Tests/ORM/Functional/TypeTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/TypeTest.php @@ -8,7 +8,7 @@ use Doctrine\Tests\Models\Generic\DecimalModel; use Doctrine\Tests\Models\Generic\SerializationModel; use Doctrine\ORM\Mapping\AssociationMapping; -use Doctrine\DBAL\Types\Type; +use Doctrine\DBAL\Types\Type as DBALType; require_once __DIR__ . '/../../TestInit.php'; @@ -135,7 +135,7 @@ class TypeTest extends \Doctrine\Tests\OrmFunctionalTestCase $this->_em->clear(); $dateTimeDb = $this->_em->createQuery('SELECT d FROM Doctrine\Tests\Models\Generic\DateTimeModel d WHERE d.datetime = ?1') - ->setParameter(1, $date, Type::DATETIME) + ->setParameter(1, $date, DBALType::DATETIME) ->getSingleResult(); } @@ -154,7 +154,7 @@ class TypeTest extends \Doctrine\Tests\OrmFunctionalTestCase ->select('d') ->from('Doctrine\Tests\Models\Generic\DateTimeModel', 'd') ->where('d.datetime = ?1') - ->setParameter(1, $date, Type::DATETIME) + ->setParameter(1, $date, DBALType::DATETIME) ->getQuery()->getSingleResult(); }