You are here

public function FileDriverTest::testGetElementFromGlobalFile in Plug 7

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php, line 21

Class

FileDriverTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testGetElementFromGlobalFile() {
  $driver = new TestFileDriver($this
    ->newLocator());
  $driver
    ->setGlobalBasename("global");
  $element = $driver
    ->getElement('stdGlobal');
  $this
    ->assertEquals('stdGlobal', $element);
}