Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / orm / tests / Doctrine / Tests / ORM / Mapping / StaticPHPMappingDriverTest.php
1 <?php
2
3 namespace Doctrine\Tests\ORM\Mapping;
4
5 use Doctrine\ORM\Mapping\ClassMetadata,
6     Doctrine\Common\Persistence\Mapping\Driver\StaticPHPDriver,
7     Doctrine\ORM\Tools\Export\ClassMetadataExporter;
8
9 require_once __DIR__ . '/../../TestInit.php';
10
11 class StaticPHPMappingDriverTest extends AbstractMappingDriverTest
12 {
13     protected function _loadDriver()
14     {
15         return new StaticPHPDriver(__DIR__ . DIRECTORY_SEPARATOR . 'php');
16     }
17
18
19     /**
20      * All class with static::loadMetadata are entities for php driver
21      *
22      * @group DDC-889
23      */
24     public function testinvalidEntityOrMappedSuperClassShouldMentionParentClasses()
25     {
26         $this->createClassMetadata('Doctrine\Tests\Models\DDC889\DDC889Class');
27     }
28 }