class PHPDriverTest

Hierarchy

  • class \Doctrine\Tests\DoctrineTestCase extends \Doctrine\Tests\PHPUnit_Framework_TestCase

Expanded class hierarchy of PHPDriverTest

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/PHPDriverTest.php, line 8

Namespace

Doctrine\Tests\Common\Persistence\Mapping
View source
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);
  }

}

Members