You are here

public function FileDriverTest::testIsNotTransient in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php \Doctrine\Tests\Common\Persistence\Mapping\FileDriverTest::testIsNotTransient()

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php, line 83

Class

FileDriverTest

Namespace

Doctrine\Tests\Common\Persistence\Mapping

Code

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