Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / common / tests / Doctrine / Tests / Common / Persistence / Mapping / PHPDriverTest.php
1 <?php
2
3 namespace Doctrine\Tests\Common\Persistence\Mapping;
4
5 use Doctrine\Tests\DoctrineTestCase;
6 use Doctrine\Common\Persistence\Mapping\Driver\PHPDriver;
7
8 class PHPDriverTest extends DoctrineTestCase
9 {
10     public function testLoadMetadata()
11     {
12         $metadata = $this->getMock('Doctrine\Common\Persistence\Mapping\ClassMetadata');
13         $metadata->expects($this->once())->method('getFieldNames');
14
15         $driver = new PHPDriver(array(__DIR__ . "/_files"));
16         $driver->loadMetadataForClass('TestEntity', $metadata);
17     }
18 }