/** * getChildren() test */ public function testGetChildren() { $parent = new Zend_Server_Reflection_Node('string'); $child = $parent->createChild('array'); $children = $parent->getChildren(); $types = array(); foreach ($children as $c) { $types[] = $c->getValue(); } $this->assertTrue(is_array($children)); $this->assertEquals(1, count($children), var_export($types, 1)); $this->assertTrue($child === $children[0]); }