1
0
mirror of synced 2024-12-14 23:26:04 +03:00

Fixed phpunit tests which was failing due to a duplicate use declaration.

This commit is contained in:
Guilherme Blanco 2011-06-21 12:38:08 -03:00
parent a5cddb0c11
commit db80b2b135

View File

@ -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();
}