Example #1
0
 function test_addChild_should_set_children_object_properties()
 {
     $coll = new Collection('foo_collection');
     $coll->addChild(new Collection('bar_child'));
     $child = $coll->getChildren();
     $child = reset($child);
     $this->assertEquals(false, $child->isRequired());
     $this->assertEquals($coll->getName(), $child->getParentName());
 }