Commit 20c84166 authored by guilhermeblanco's avatar guilhermeblanco

[2.0] More coverage to AbstractSchemaName.

parent b4b64b1e
......@@ -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
*
......
......@@ -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());
}
}
......
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