Permalink
Browse files

Changed test to work with php 5.3.5

  • Loading branch information...
1 parent 1bb70c7 commit 82751a496e60c2a51bb8b98e4a9aa72579882f95 @fbrandel committed Nov 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/JsonFileTest.php
View
3 tests/JsonFileTest.php
@@ -62,7 +62,8 @@ public function jsonFileProvider()
$iterator = new DirectoryIterator(__DIR__ . '/../');
foreach ($iterator as $fileinfo) {
- if (!$fileinfo->isDot() && $fileinfo->getExtension() == 'json') {
+ $fileExtension = pathinfo($fileinfo->getFilename(), PATHINFO_EXTENSION);
+ if (!$fileinfo->isDot() && $fileExtension == 'json') {
$data[] = array($fileinfo->getRealPath());
}
}

0 comments on commit 82751a4

Please sign in to comment.