You are here

public function SymfonyFileLocatorTest::testGetFileExtension in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/SymfonyFileLocatorTest.php \Doctrine\Tests\Common\Persistence\Mapping\SymfonyFileLocatorTest::testGetFileExtension()

File

vendor/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());
}