You are here

public function FileDriverTest::testIsTransient in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

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