Skip to content

Commit

Permalink
don't test file size / fails on github due to size differences
Browse files Browse the repository at this point in the history
  • Loading branch information
passchn committed Sep 21, 2023
1 parent d933d4f commit 663c998
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/Utilities/ImageAssetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 663c998

Please sign in to comment.