public function DefaultFileLocatorTest::testFileExists in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
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"));
}