public function FileDriverTest::testIsTransient

File

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