You are here

private function FileDriverTest::newLocator 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::newLocator()
7 calls to FileDriverTest::newLocator()
FileDriverTest::testGetAllClassNamesBothSources in vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php
FileDriverTest::testGetAllClassNamesFromMappingFile in vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php
FileDriverTest::testGetAllClassNamesGlobalBasename in vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php
FileDriverTest::testGetElementFromFile in vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php
FileDriverTest::testGetElementFromGlobalFile in vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php

... See full list

File

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;
}