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

[2.0] Fix for package building

This commit is contained in:
jwage 2009-10-05 23:54:49 +00:00
parent 5fb493c5d1
commit bda1b9ae7c

View File

@ -89,17 +89,16 @@ class ClassMetadataExporterTest extends \Doctrine\Tests\OrmTestCase
public function testGetMetadataInstances()
{
$cme = new ClassMetadataExporter();
$cme->addMappingDir(__DIR__ . '/annotation', 'annotation');
$cme->addMappingDir(__DIR__ . '/php', 'php');
$cme->addMappingDir(__DIR__ . '/xml', 'xml');
$cme->addMappingDir(__DIR__ . '/yml', 'yml');
$metadataInstances = $cme->getMetadataInstances();
$this->assertEquals(4, count($metadataInstances));
$this->assertEquals('AnnotationTest', $metadataInstances[0]->name);
$this->assertEquals('PhpTest', $metadataInstances[1]->name);
$this->assertEquals('XmlTest', $metadataInstances[2]->name);
$this->assertEquals('YmlTest', $metadataInstances[3]->name);
$this->assertEquals(3, count($metadataInstances));
$this->assertEquals('PhpTest', $metadataInstances[0]->name);
$this->assertEquals('XmlTest', $metadataInstances[1]->name);
$this->assertEquals('YmlTest', $metadataInstances[2]->name);
}
/**