You are here

public function PHPDriverTest::testLoadMetadata in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/PHPDriverTest.php \Doctrine\Tests\Common\Persistence\Mapping\PHPDriverTest::testLoadMetadata()

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/PHPDriverTest.php, line 10

Class

PHPDriverTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

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);
}