Skip to content

Commit

Permalink
test: Fix Test Case
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Dec 22, 2024
1 parent 9c31ee1 commit d416430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/webfiori/framework/test/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function test08() {
$this->assertEquals(['54'], $file->toHexArray());
$file->read();
$this->assertEquals("This is to test if read from same directory is working.\n", $file->getRawData());
$this->assertEquals('{"id":-1,"mime":"text\/plain","name":"in-dir.txt","directory":"C:\\inetpub\\wwwroot\\dev\\IbrahimSpace\\file\\tests\\webfiori\\framework\\test","sizeInBytes":57,"sizeInKBytes":0.0556640625,"sizeInMBytes":5.4359436035156E-5}', $file.'');
$this->assertEquals('{"id":-1,"mime":"text\/plain","name":"in-dir.txt","directory":"'.Json::escapeJSONSpecialChars($file->getDir()).'","sizeInBytes":'.$file->getSize().',"sizeInKBytes":'.($file->getSize() / 1024).',"sizeInMBytes":'.(($file->getSize() / 1024) / 1024).'}', $file.'');
}
/**
* @test
Expand Down

0 comments on commit d416430

Please sign in to comment.