You are here

public function AutoloaderTest::testAutoloaderInvalidPHPExcelClass in Loft Data Grids 6.2

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

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/AutoloaderTest.php, line 27

Class

AutoloaderTest

Code

public function testAutoloaderInvalidPHPExcelClass() {
  $className = 'PHPExcel_Invalid_Class';
  $result = PHPExcel_Autoloader::Load($className);

  //    Must return a boolean...
  $this
    ->assertTrue(is_bool($result));

  //    ... indicating failure
  $this
    ->assertFalse($result);
}