public function PersistentObjectTest::testNoObjectManagerSet

File

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