You are here

public function DefaultFileLocatorTest::testFileExists in Zircon Profile 8

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

File

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

Class

DefaultFileLocatorTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

public function testFileExists() {
  $path = __DIR__ . "/_files";
  $locator = new DefaultFileLocator(array(
    $path,
  ), ".yml");
  $this
    ->assertTrue($locator
    ->fileExists("stdClass"));
  $this
    ->assertFalse($locator
    ->fileExists("stdClass2"));
  $this
    ->assertTrue($locator
    ->fileExists("global"));
  $this
    ->assertFalse($locator
    ->fileExists("global2"));
}