You are here

public function XEEValidatorTest::testInvalidXML in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Reader/XEEValidatorTest.php \XEEValidatorTest::testInvalidXML()

@dataProvider providerInvalidXML @expectedException PHPExcel_Reader_Exception

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Reader/XEEValidatorTest.php, line 19

Class

XEEValidatorTest

Code

public function testInvalidXML($filename) {
  $reader = $this
    ->getMockForAbstractClass('PHPExcel_Reader_Abstract');
  $expectedResult = 'FAILURE: Should throw an Exception rather than return a value';
  $result = $reader
    ->securityScanFile($filename);
  $this
    ->assertEquals($expectedResult, $result);
}