Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and github-actions[bot] committed Jun 28, 2023
1 parent 7c085bd commit c180640
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/Arguments/ArgumentReducersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use Illuminate\Foundation\Auth\User;
use Illuminate\Support\Collection;
use Orchestra\Testbench\Factories\UserFactory;
use Spatie\LaravelIgnition\Facades\Flare;
use Spatie\LaravelIgnition\Tests\TestClasses\FakeArgumentsReducer;

Expand All @@ -28,7 +27,7 @@ function collectionException(Collection $collection)
]);
});

it('can reduce a model', function (){
it('can reduce a model', function () {
$user = new User();
$user->id = 10;

Expand All @@ -49,7 +48,7 @@ function userException(User $user)
]);
});

it('can disable the use of arguments', function(){
it('can disable the use of arguments', function () {
function exceptionWithArgumentsDisabled(string $string)
{
return new Exception('Whoops');
Expand All @@ -62,14 +61,14 @@ function exceptionWithArgumentsDisabled(string $string)
expect($report->toArray()['stacktrace'][1]['arguments'])->toBeNull();
});

it('can set a custom arguments reducer', function (){
it('can set a custom arguments reducer', function () {
function exceptionWithCustomArgumentReducer(string $string)
{
return new Exception('Whoops');
}

config()->set('ignition.argument_reducers', [
FakeArgumentsReducer::class
FakeArgumentsReducer::class,
]);

$report = Flare::createReport(exceptionWithCustomArgumentReducer('Hello World'));
Expand Down

0 comments on commit c180640

Please sign in to comment.