function test10() { $s = new sibling('Jake'); $j = new sibling('John'); $j->add_sibling(new sibling('Jane')); $j->add_sibling(new sibling('Mary')); $s->add_sibling($j); $sibling_count = count($s->get_first_sibling()->siblings); echo "verifying \$foo()->method_call()->property works<br>\n"; echo "Result: " . ($sibling_count == 2 ? 'pass' : 'fail') . "<br><br>\n\n"; }