function test_dynamic_method_call_should_accept_children() { $coll = new Collection('some_name'); $coll->foo_bar(Collection::some(), Collection::children(), Collection::here()); $this->assertEquals(3, count($coll->getNext()->getChildren())); }