You are here

public function StaticPHPDriverTest::testLoadMetadata in Zircon Profile 8

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

File

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

Class

StaticPHPDriverTest

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 StaticPHPDriver(array(
    __DIR__,
  ));
  $driver
    ->loadMetadataForClass(__NAMESPACE__ . '\\TestEntity', $metadata);
}