Example #1
0
 public function testDuplicateSplObjectHash()
 {
     $group = new EmbeddedGroup('Model\\Comment');
     $comment = $this->mandango->create('Model\\Comment');
     $this->assertEquals(0, count($group->getAdd()));
     $group->add($comment);
     $this->assertEquals(1, count($group->getAdd()));
     unset($group);
     $group = new EmbeddedGroup('Model\\Comment');
     $this->assertEquals(0, count($group->getAdd()));
 }