You are here

public function FileDriverTest::testGetAllClassNamesFromMappingFile in Zircon Profile 8

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

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php, line 54

Class

FileDriverTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testGetAllClassNamesFromMappingFile() {
  $locator = $this
    ->newLocator();
  $locator
    ->expects($this
    ->any())
    ->method('getAllClassNames')
    ->with($this
    ->equalTo(null))
    ->will($this
    ->returnValue(array(
    'stdClass',
  )));
  $driver = new TestFileDriver($locator);
  $classNames = $driver
    ->getAllClassNames();
  $this
    ->assertEquals(array(
    'stdClass',
  ), $classNames);
}