コード例 #1
0
 /**
  * testGetReflector
  *
  * @access public
  * @return void
  */
 function testGetReflector()
 {
     $result = DocumentorFactory::getReflector('function', 'substr');
     $this->assertTrue($result instanceof FunctionDocumentor);
     $result = DocumentorFactory::getReflector('class', 'DocumentorFactory');
     $this->assertTrue($result instanceof ClassDocumentor);
     $result = DocumentorFactory::getReflector('DocumentorFactory');
     $this->assertTrue($result instanceof ClassDocumentor);
 }
コード例 #2
0
 /**
  * Loads the documentation extractor for a given classname.
  *
  * @param string $name Name of class to load.
  * @access public
  * @return void
  */
 public function loadExtractor($type, $name)
 {
     $this->_extractor = DocumentorFactory::getReflector($type, $name);
 }