You are here

public function FileDriverTest::testIsTransient in Plug 7

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php, line 99

Class

FileDriverTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

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'));
}