1
0
mirror of synced 2025-01-18 14:31:40 +03:00

[2.0] More coverage to AbstractSchemaName.

This commit is contained in:
guilhermeblanco 2009-12-27 19:02:07 +00:00
parent b4b64b1ee9
commit 20c8416607
2 changed files with 5 additions and 4 deletions

View File

@ -377,6 +377,11 @@ class LanguageRecognitionTest extends \Doctrine\Tests\OrmTestCase
$this->assertInvalidDql('select u, (select max(p.phonenumber) from Doctrine\Tests\Models\CMS\CmsPhonenumber p) maxId from Doctrine\Tests\Models\CMS\CmsUser u WHERE p.user = ?1');
}
public function testUnknownAbstractSchemaName()
{
$this->assertInvalidDql('SELECT u FROM UnknownClassName u');
}
/**
* This checks for invalid attempt to hydrate a proxy. It should throw an exception
*

View File

@ -23,10 +23,6 @@ class SelectSqlGenerationTest extends \Doctrine\Tests\OrmTestCase
parent::assertEquals($sqlToBeConfirmed, $query->getSql());
$query->free();
} catch (Doctrine_Exception $e) {
if ($debug) {
echo $e->getTraceAsString() . PHP_EOL;
}
$this->fail($e->getMessage());
}
}