You are here

public function DefaultFileLocatorTest::testGetFileExtension in Zircon Profile 8.0

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

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/DefaultFileLocatorTest.php, line 21

Class

DefaultFileLocatorTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

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