You are here

public function DefaultFileLocatorTest::testFileExists in Plug 7

File

lib/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"));
}