Esempio n. 1
0
 /**
  * Can read exception
  *
  * @expectedException \PhpOffice\PhpWord\Exception\Exception
  */
 public function testCanReadFailed()
 {
     $object = new Word2007();
     $fqFilename = join(DIRECTORY_SEPARATOR, array(PHPWORD_TESTS_BASE_DIR, 'PhpWord', 'Tests', '_files', 'documents', 'foo.docx'));
     $this->assertFalse($object->canRead($fqFilename));
     $object = IOFactory::load($fqFilename);
 }
 /**
  * Can read exception
  */
 public function testCanReadFailed()
 {
     $object = new Word2007();
     $filename = __DIR__ . '/../_files/documents/foo.docx';
     $this->assertFalse($object->canRead($filename));
 }