public function FileDriverTest::testIsNotTransient in Plug 7
File
- lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Persistence/ Mapping/ FileDriverTest.php, line 83
Class
Namespace
Doctrine\Tests\Common\Persistence\MappingCode
public function testIsNotTransient() {
$locator = $this
->newLocator();
$locator
->expects($this
->once())
->method('fileExists')
->with($this
->equalTo('stdClass'))
->will($this
->returnValue(true));
$driver = new TestFileDriver($locator);
$driver
->setGlobalBasename("global");
$this
->assertFalse($driver
->isTransient('stdClass'));
$this
->assertFalse($driver
->isTransient('stdGlobal'));
$this
->assertFalse($driver
->isTransient('stdGlobal2'));
}