Skip to content

Commit

Permalink
Convert closures to arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Sep 9, 2024
1 parent 17e3941 commit eca861c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/framework/tests/Unit/BuildTaskServiceUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,12 @@ public function testCanOverloadFrameworkTasks()

public function testCanSetOutputWithNull()
{
$this->can(function () {
$this->service->setOutput(null);
});
$this->can(fn () => $this->service->setOutput(null));
}

public function testCanSetOutputWithOutputStyle()
{
$this->can(function () {
$this->service->setOutput(Mockery::mock(OutputStyle::class));
});
$this->can(fn () => $this->service->setOutput(Mockery::mock(OutputStyle::class)));
}

public function testGenerateBuildManifestExtendsPostBuildTask()
Expand Down

0 comments on commit eca861c

Please sign in to comment.