Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Apr 28, 2024
1 parent b394c1a commit a07063d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/Unit/CachedComponent/CachedComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@
});

test('test cached component is cached second time', function () {
$time = microtime(true);
$firstRunOutput = Blade::renderComponent(new CachedComponent);
$secondRunOutput = Blade::renderComponent(new CachedComponent);

$firstOutput = Blade::renderComponent(new CachedComponent);

$time = microtime(true);

$secondOutput = Blade::renderComponent(new CachedComponent);

$this->assertEquals($firstOutput, $secondOutput);
$this->assertEquals($firstRunOutput, $secondRunOutput);
});

0 comments on commit a07063d

Please sign in to comment.