1
0
mirror of synced 2025-01-18 06:21:40 +03:00

[DDC-551] Removed 'use ..DBAL\..\Type', causing full testsuite to fail

This commit is contained in:
Alexander 2011-07-22 15:10:31 +02:00
parent 4266ab77b2
commit afd7a540a7

View File

@ -4,7 +4,6 @@ namespace Doctrine\Tests\ORM\Functional;
use Doctrine\ORM\Query\Filter\SQLFilter; use Doctrine\ORM\Query\Filter\SQLFilter;
use Doctrine\ORM\Mapping\ClassMetaData; use Doctrine\ORM\Mapping\ClassMetaData;
use Doctrine\DBAL\Types\Type;
require_once __DIR__ . '/../../TestInit.php'; require_once __DIR__ . '/../../TestInit.php';
@ -150,7 +149,7 @@ class SQLFilterTest extends \Doctrine\Tests\OrmFunctionalTestCase
$filter = new MyLocaleFilter($conn); $filter = new MyLocaleFilter($conn);
$filter->setParameter('locale', 'en', Type::STRING); $filter->setParameter('locale', 'en', \Doctrine\DBAL\Types\Type::STRING);
$this->assertEquals("'en'", $filter->getParameter('locale')); $this->assertEquals("'en'", $filter->getParameter('locale'));
} }
@ -177,16 +176,16 @@ class SQLFilterTest extends \Doctrine\Tests\OrmFunctionalTestCase
public function testSQLFilterToString() public function testSQLFilterToString()
{ {
$filter = new MyLocaleFilter($this->getMockConnection()); $filter = new MyLocaleFilter($this->getMockConnection());
$filter->setParameter('locale', 'en', TYPE::STRING); $filter->setParameter('locale', 'en', \Doctrine\DBAL\Types\Type::STRING);
$filter->setParameter('foo', 'bar', TYPE::STRING); $filter->setParameter('foo', 'bar', \Doctrine\DBAL\Types\Type::STRING);
$filter2 = new MyLocaleFilter($this->getMockConnection()); $filter2 = new MyLocaleFilter($this->getMockConnection());
$filter2->setParameter('foo', 'bar', TYPE::STRING); $filter2->setParameter('foo', 'bar', \Doctrine\DBAL\Types\Type::STRING);
$filter2->setParameter('locale', 'en', TYPE::STRING); $filter2->setParameter('locale', 'en', \Doctrine\DBAL\Types\Type::STRING);
$parameters = array( $parameters = array(
'foo' => array('value' => 'bar', 'type' => TYPE::STRING), 'foo' => array('value' => 'bar', 'type' => \Doctrine\DBAL\Types\Type::STRING),
'locale' => array('value' => 'en', 'type' => TYPE::STRING), 'locale' => array('value' => 'en', 'type' => \Doctrine\DBAL\Types\Type::STRING),
); );
$this->assertEquals(serialize($parameters), ''.$filter); $this->assertEquals(serialize($parameters), ''.$filter);