public function PersistentObjectTest::testSetInvalidToOneAssocation

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php, line 87

Class

PersistentObjectTest
@group DDC-1448

Namespace

Doctrine\Tests\Common\Persistence

Code

public function testSetInvalidToOneAssocation() {
  $parent = new \stdClass();
  $this
    ->setExpectedException('InvalidArgumentException');
  $this->object
    ->setParent($parent);
}