parse() public method

Proxies the parsing responsibility to the selected adapter.
public parse ( ) : `void`
return `void`
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);
 }