From 663c9985e6cbe7a2431fc2b176f2b9184cdfa4fa Mon Sep 17 00:00:00 2001 From: passchn <77938819+passchn@users.noreply.github.com> Date: Thu, 21 Sep 2023 21:59:33 +0200 Subject: [PATCH] don't test file size / fails on github due to size differences --- tests/Utilities/ImageAssetTest.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/Utilities/ImageAssetTest.php b/tests/Utilities/ImageAssetTest.php index 7965d34..31fcb77 100644 --- a/tests/Utilities/ImageAssetTest.php +++ b/tests/Utilities/ImageAssetTest.php @@ -32,15 +32,11 @@ public function testCreateFromPathWithValidPath(): void $renderedPath = WWW_ROOT . $image->toWebp()->scaleWidth(120)->getPath(); static::assertFileExists($renderedPath); - $splFileInfo = new \SplFileInfo($renderedPath); static::assertEquals('image/webp', mime_content_type($renderedPath)); - static::assertEquals(6178, $splFileInfo->getSize()); $renderedPathOfLargeJpg = WWW_ROOT . $image->toJpg()->scaleWidth(240)->getPath(); static::assertFileExists($renderedPathOfLargeJpg); - $splFileInfoJpg = new \SplFileInfo($renderedPathOfLargeJpg); static::assertEquals('image/jpeg', mime_content_type($renderedPathOfLargeJpg)); - static::assertEquals(22336, $splFileInfoJpg->getSize()); } public function testHtmlCreation(): void