/** * Run the analysis * * @return \Puml\Model\Object * @since 0.1 */ public function run() { $this->reflectedObject = new \ReflectionClass($this->objectName); $this->object->setName($this->reflectedObject->getName()); /* Analyse its properties */ $this->extractProperties($this->reflectedObject, $this->object); /* Analyse its methods */ $this->extractMethods($this->reflectedObject, $this->object); /* Analyse its parents */ $this->determineParent($this->reflectedObject, $this->object); return $this->object; }
/** * @covers Puml\Model\Object::getName */ public function testGetName() { $name = 'stdClass'; $this->object->setName($name); $this->assertSame($name, $this->object->getName()); }