Skip to content

Commit

Permalink
Merge pull request #112 from vctls/master
Browse files Browse the repository at this point in the history
Made test compatible with php 5.3 and hhvm.
  • Loading branch information
liuggio committed Apr 21, 2017
2 parents 416d34b + 4824219 commit 08b68f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/app/Controller/FakeController.php
Expand Up @@ -48,10 +48,10 @@ public function readerAction()
$reader = $factory->createReader('Excel5');
// check that the file can be read
$canread = $reader->canRead($filename);
// chack that an empty temporary file cannot be read
$someFile = tmpfile();
$cannotread = $reader->canRead(stream_get_meta_data($someFile)['uri']);
fclose($someFile);
// check that an empty temporary file cannot be read
$someFile = tempnam($this->getParameter('kernel.root_dir'), "tmp");
$cannotread = $reader->canRead($someFile);
unlink($someFile);
// load the excel file
$phpExcelObject = $reader->load($filename);
// read some data
Expand Down

0 comments on commit 08b68f3

Please sign in to comment.