You are here

protected function TestFileDriver::loadMappingFile 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\TestFileDriver::loadMappingFile()

Loads a mapping file with the given name and returns a map from class/entity names to their corresponding file driver elements.

Parameters

string $file The mapping file to load.:

Return value

array

Overrides FileDriver::loadMappingFile

File

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

Class

TestFileDriver

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

protected function loadMappingFile($file) {
  if (strpos($file, "global.yml") !== false) {
    return array(
      'stdGlobal' => 'stdGlobal',
      'stdGlobal2' => 'stdGlobal2',
    );
  }
  return array(
    'stdClass' => 'stdClass',
  );
}