You are here

public function AutoloaderTest::testAutoloaderNonPHPExcelClass 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::testAutoloaderNonPHPExcelClass()

File

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

Class

AutoloaderTest

Code

public function testAutoloaderNonPHPExcelClass() {
  $className = 'InvalidClass';
  $result = PHPExcel_Autoloader::Load($className);

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

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