public function testGetContent()
 {
     $reader = new PdfToTextReader();
     $invoice = new FileInvoice($reader, $this->getDirectory() . '/1.pdf');
     $this->assertEquals('1.pdf', $invoice->getName());
     $this->assertContains('FACTURE N° 421', $invoice->getContent());
 }
 public function testGetContent()
 {
     $reader = new PhpOfficeExcelReader();
     $invoice = new FileInvoice($reader, $this->getDirectory() . '/1.xlsx');
     $this->assertEquals('1.xlsx', $invoice->getName());
     $this->assertContains('FACTURE N° 12', $invoice->getContent());
     $invoice = new FileInvoice($reader, $this->getDirectory() . '/2.xls');
     $this->assertEquals('2.xls', $invoice->getName());
     $this->assertContains('FACTURE N° 12', $invoice->getContent());
 }