public function FileDriverTest::testIsTransient in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php \Doctrine\Tests\Common\Persistence\Mapping\FileDriverTest::testIsTransient()
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ FileDriverTest.php, line 99
Class
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
public function testIsTransient() {
$locator = $this
->newLocator();
$locator
->expects($this
->once())
->method('fileExists')
->with($this
->equalTo('stdClass2'))
->will($this
->returnValue(false));
$driver = new TestFileDriver($locator);
$this
->assertTrue($driver
->isTransient('stdClass2'));
}