public function FileDriverTest::testIsTransient in Plug 7
File
- lib/
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'));
}