You are here

public function FileDriverTest::testGetAllClassNamesBothSources in Zircon Profile 8.0

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

File

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

Class

FileDriverTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testGetAllClassNamesBothSources() {
  $locator = $this
    ->newLocator();
  $locator
    ->expects($this
    ->any())
    ->method('getAllClassNames')
    ->with($this
    ->equalTo('global'))
    ->will($this
    ->returnValue(array(
    'stdClass',
  )));
  $driver = new TestFileDriver($locator);
  $driver
    ->setGlobalBasename("global");
  $classNames = $driver
    ->getAllClassNames();
  $this
    ->assertEquals(array(
    'stdGlobal',
    'stdGlobal2',
    'stdClass',
  ), $classNames);
}