private function _getTocifier()
 {
     if (is_null($this->_tocifier)) {
         $tocifier = new Tocifier($this->_getHtml());
         $this->_tocifier = $tocifier->process() ? $tocifier : false;
     }
     return $this->_tocifier;
 }
 public function testTOC()
 {
     $tocifier = new Tocifier(@file_get_contents('test1'));
     $this->assertEquals($tocifier->getTOC(), array());
     $this->assertTrue($tocifier->process());
     $this->assertNotNull($tocifier->getTOC());
     ob_start();
     $tocifier->dumpTOC();
     $returned = ob_get_clean();
     $this->assertStringEqualsFile('toc1', $returned);
 }