public function testToText() { $pdfFile = new PdfFile($this->createPdfinfoMock(), Pdftotext::create($this->createLoggerMock()), $this->createPdftohtmlMock()); $text = $pdfFile->toText(__DIR__ . '/../files/pdf-sample.pdf'); $this->assertNotEmpty($text); $this->assertEquals($this->createTextContent(), $text); }
public function testToText() { $pdfFile = new PdfFile($this->createPdfinfoMock(), $this->createPdftotextMock(), $this->createPdftohtmlMock()); $text = $pdfFile->toText(__DIR__ . '/../files/pdf-sample.pdf'); }