Skip to content

Commit

Permalink
feat: get file via VFS not file_get_contents
Browse files Browse the repository at this point in the history
  • Loading branch information
fibble committed Oct 3, 2024
1 parent ad1a31e commit acb676e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,14 @@ public function testInternationalGoods()
'Fetching data for international goods list' .
'Creating CSV file: ' . $expectedFile;

$fileContent = $this->vfsStream->getChild('unit/' . basename($expectedFile))->getContent();

$this->assertSame(
'"Licence number",col1,col2' . "\n" .
'LicNo1,val11,"v""\'-/\,"' . "\n" .
'LicNo2,val21,val22' . "\n" .
'LicNo3,val31,val32' . "\n",
file_get_contents($expectedFile)
$fileContent
);

$this->assertEquals(
Expand Down

0 comments on commit acb676e

Please sign in to comment.