It works on a single language file, delegating the processing to an adapter class, then writes the resulting parsed content to an output file using the built-in templates.
Author: Ross Riley
Beispiel #1
0
 /**
  * Test of the basic class loader. This description also performs a use as a test comment.
  **/
 public function testLoadInit()
 {
     $test = new Phrocco("php", __FILE__);
     $test->parse();
     $this->assertTrue(count($test->sections["code"]) > 0);
     $this->assertTrue(count($test->sections["docs"]) > 0);
     $this->assertEquals($test->title, "PhroccoBasicTest.php");
     $this->assertStringStartsWith("<p>Test of the basic class loader.", $test->sections["docs"][0]);
     $this->assertInstanceOf("Phrocco\\Adapter\\PhpAdapter", $test->adapter);
 }