Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loks0n committed Nov 8, 2024
1 parent 8509f4b commit 1fb40cd
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions tests/Compression/Algorithms/BrotliTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testCompressDecompressWithText()

public function testCompressDecompressWithLargeText()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/lorem.txt');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-a/lorem.txt');
$demoSize = mb_strlen($demo, '8bit');

$this->object->setLevel(8);
Expand All @@ -70,7 +70,7 @@ public function testCompressDecompressWithLargeText()

public function testCompressDecompressWithJPGImage()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/kitten-1.jpg');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-a/kitten-1.jpg');
$demoSize = mb_strlen($demo, '8bit');

$this->object->setLevel(8);
Expand All @@ -89,7 +89,7 @@ public function testCompressDecompressWithJPGImage()

public function testCompressDecompressWithPNGImage()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-b/kitten-1.png');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-b/kitten-1.png');
$demoSize = mb_strlen($demo, '8bit');

$this->object->setLevel(8);
Expand Down
6 changes: 3 additions & 3 deletions tests/Compression/Algorithms/GZIPTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testCompressDecompressWithText()

public function testCompressDecompressWithLargeText()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/lorem.txt');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-a/lorem.txt');
$demoSize = mb_strlen($demo, '8bit');

$data = $this->object->compress($demo);
Expand All @@ -61,7 +61,7 @@ public function testCompressDecompressWithLargeText()

public function testCompressDecompressWithJPGImage()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/kitten-1.jpg');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-a/kitten-1.jpg');
$demoSize = mb_strlen($demo, '8bit');

$data = $this->object->compress($demo);
Expand All @@ -80,7 +80,7 @@ public function testCompressDecompressWithJPGImage()

public function testCompressDecompressWithPNGImage()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-b/kitten-1.png');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-b/kitten-1.png');
$demoSize = mb_strlen($demo, '8bit');

$data = $this->object->compress($demo);
Expand Down
4 changes: 2 additions & 2 deletions tests/Compression/Algorithms/LZ4Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function testCompressDecompressWithText()

public function testCompressDecompressWithJPGImage()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/kitten-1.jpg');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-a/kitten-1.jpg');
$demoSize = \mb_strlen($demo, '8bit');

$data = $this->object->compress($demo);
Expand All @@ -58,7 +58,7 @@ public function testCompressDecompressWithJPGImage()

public function testCompressDecompressWithPNGImage()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-b/kitten-1.png');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-b/kitten-1.png');
$demoSize = \mb_strlen($demo, '8bit');

$data = $this->object->compress($demo);
Expand Down
4 changes: 2 additions & 2 deletions tests/Compression/Algorithms/SnappyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function testCompressDecompressWithText()

public function testCompressDecompressWithJPGImage()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/kitten-1.jpg');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-a/kitten-1.jpg');
$demoSize = \mb_strlen($demo, '8bit');

$data = $this->object->compress($demo);
Expand All @@ -62,7 +62,7 @@ public function testCompressDecompressWithJPGImage()

public function testCompressDecompressWithPNGImage()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-b/kitten-1.png');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-b/kitten-1.png');
$demoSize = \mb_strlen($demo, '8bit');

$data = $this->object->compress($demo);
Expand Down
4 changes: 2 additions & 2 deletions tests/Compression/Algorithms/XZTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function testCompressDecompressWithText()

public function testCompressDecompressWithJPGImage()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/kitten-1.jpg');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-a/kitten-1.jpg');
$demoSize = mb_strlen($demo, '8bit');

$data = $this->object->compress($demo);
Expand All @@ -58,7 +58,7 @@ public function testCompressDecompressWithJPGImage()

public function testCompressDecompressWithPNGImage()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-b/kitten-1.png');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-b/kitten-1.png');
$demoSize = mb_strlen($demo, '8bit');

$data = $this->object->compress($demo);
Expand Down
6 changes: 3 additions & 3 deletions tests/Compression/Algorithms/ZstdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function testCompressDecompressWithText()

public function testCompressDecompressWithLargeText()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/lorem.txt');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-a/lorem.txt');
$demoSize = mb_strlen($demo, '8bit');

$data = $this->object->compress($demo);
Expand All @@ -58,7 +58,7 @@ public function testCompressDecompressWithLargeText()

public function testCompressDecompressWithJPGImage()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/kitten-1.jpg');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-a/kitten-1.jpg');
$demoSize = \mb_strlen($demo, '8bit');

$data = $this->object->compress($demo);
Expand All @@ -77,7 +77,7 @@ public function testCompressDecompressWithJPGImage()

public function testCompressDecompressWithPNGImage()
{
$demo = \file_get_contents(__DIR__.'/../../../resources/disk-b/kitten-1.png');
$demo = \file_get_contents(__DIR__.'/../../resources/disk-b/kitten-1.png');
$demoSize = \mb_strlen($demo, '8bit');

$data = $this->object->compress($demo);
Expand Down

0 comments on commit 1fb40cd

Please sign in to comment.