Rajout de doctrine/orm
[zf2.biz/application_blanche.git] / vendor / doctrine / common / tests / Doctrine / Tests / Common / Persistence / Mapping / PHPDriverTest.php
diff --git a/vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/PHPDriverTest.php b/vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/PHPDriverTest.php
new file mode 100644 (file)
index 0000000..8fc4d80
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+
+namespace Doctrine\Tests\Common\Persistence\Mapping;
+
+use Doctrine\Tests\DoctrineTestCase;
+use Doctrine\Common\Persistence\Mapping\Driver\PHPDriver;
+
+class PHPDriverTest extends DoctrineTestCase
+{
+    public function testLoadMetadata()
+    {
+        $metadata = $this->getMock('Doctrine\Common\Persistence\Mapping\ClassMetadata');
+        $metadata->expects($this->once())->method('getFieldNames');
+
+        $driver = new PHPDriver(array(__DIR__ . "/_files"));
+        $driver->loadMetadataForClass('TestEntity', $metadata);
+    }
+}
\ No newline at end of file