private function FileDriverTest::newLocator

7 calls to FileDriverTest::newLocator()
FileDriverTest::testGetAllClassNamesBothSources in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php
FileDriverTest::testGetAllClassNamesFromMappingFile in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php
FileDriverTest::testGetAllClassNamesGlobalBasename in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php
FileDriverTest::testGetElementFromFile in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php
FileDriverTest::testGetElementFromGlobalFile in drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php

... See full list

File

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

Class

FileDriverTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

private function newLocator() {
  $locator = $this
    ->getMock('Doctrine\\Common\\Persistence\\Mapping\\Driver\\FileLocator');
  $locator
    ->expects($this
    ->any())
    ->method('getFileExtension')
    ->will($this
    ->returnValue('.yml'));
  $locator
    ->expects($this
    ->any())
    ->method('getPaths')
    ->will($this
    ->returnValue(array(
    __DIR__ . "/_files",
  )));
  return $locator;
}