protected function 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

drupal/core/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',
  );
}