public function testChangePage() { $file = dirname(__FILE__) . '/source/test.pdf'; $pdf = new Pdf($file); $html = $pdf->html(); // echo count($html->find('body')); // print_r($html); $this->assertEquals(1, $html->getCurrentPage()); $html->goToPage(1); $this->assertEquals(1, $html->getCurrentPage()); $this->assertArrayHasKey('pages', $pdf->getInfo()); }