From d4164302e156bd21e33acfcb931bac7d31d9537d Mon Sep 17 00:00:00 2001 From: Ibrahim Date: Sun, 22 Dec 2024 18:31:51 +0300 Subject: [PATCH] test: Fix Test Case --- tests/webfiori/framework/test/FileTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/webfiori/framework/test/FileTest.php b/tests/webfiori/framework/test/FileTest.php index 39b6dbe..a05eef3 100644 --- a/tests/webfiori/framework/test/FileTest.php +++ b/tests/webfiori/framework/test/FileTest.php @@ -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