You are here

public function PersistentObjectTest::testNoObjectManagerSet in Zircon Profile 8

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

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php, line 123

Class

PersistentObjectTest
@group DDC-1448

Namespace

Doctrine\Tests\Common\Persistence

Code

public function testNoObjectManagerSet() {
  PersistentObject::setObjectManager(null);
  $child = new TestObject();
  $this
    ->setExpectedException('RuntimeException');
  $child
    ->setName("test");
}