Skip to content

Commit

Permalink
feature/compress-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Raul Mauricio Uñate Castro committed Jul 6, 2024
1 parent 521154e commit 4786f51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Support/SupportStringableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ public function testCompress()
$exampleInput = $this->stringable(json_encode(["message" => $this->stringable("Laravel Framework")->repeat(2000)]));

// Compress the input
$valueCompressed = $exampleInput->compress($exampleInput);
$valueCompressed = $exampleInput->compress();

// Ensure the compressed value is not empty
$this->assertNotEmpty($valueCompressed, 'The compressed value should not be empty');
Expand All @@ -734,10 +734,10 @@ public function testDecompress()
$exampleInput = $this->stringable(json_encode(["message" => $this->stringable("Laravel Framework")->repeat(2000)]));

// Compress the input to prepare for decompression test
$valueCompressed = $exampleInput->compress($exampleInput);
$valueCompressed = $exampleInput->compress();

// Decompress the output
$valueUncompressed = $exampleInput->decompress($valueCompressed);
$valueUncompressed = $exampleInput->decompress();

// Ensure the decompressed input matches the original
$this->assertEquals($exampleInput, $valueUncompressed, 'The decompressed value should match the original input');
Expand Down

0 comments on commit 4786f51

Please sign in to comment.