Skip to content

Commit

Permalink
Fix loadOnce not working when passing an array of file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hernanrz committed Mar 2, 2016
1 parent 8ab874e commit b90b969
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion emulator/testing.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"data": "yes",
"sourceType": "file",
"dataLocation": ["tests\\testfile.txt", "emulator\\emulator.php"],
"dataLocation": ["tests\\testfile.txt"],
"loadOnce": false
}
1 change: 1 addition & 0 deletions src/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function loadFromFiles(array $filePaths)
{

$this->data = '';
$this->filePaths = $filePaths;

foreach ($filePaths as $filePath) {
$this->data .= file_get_contents($filePath);
Expand Down

0 comments on commit b90b969

Please sign in to comment.