/** * testIsUserDefinedReturnsTrueWhenChildElementIsUserDefined * * @return void */ public function testIsUserDefinedReturnsTrueWhenChildElementIsUserDefined() { $class = new ASTClass('class', 0); $class->setUserDefined(); $namespace = new ASTNamespace('package1'); $namespace->addType($class); $this->assertTrue($namespace->isUserDefined()); }