You are here

public function SymfonyFileLocatorTest::testGetFileExtension in Plug 7

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/SymfonyFileLocatorTest.php, line 31

Class

SymfonyFileLocatorTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testGetFileExtension() {
  $locator = new SymfonyFileLocator(array(), ".yml");
  $this
    ->assertEquals(".yml", $locator
    ->getFileExtension());
  $locator
    ->setFileExtension(".xml");
  $this
    ->assertEquals(".xml", $locator
    ->getFileExtension());
}