mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 14:23:34 +02:00
chore: coding style changes
This commit is contained in:
@@ -41,15 +41,11 @@ it('skips with falsy', function (): void {
|
||||
expect($this->whenObject)
|
||||
->when(
|
||||
0,
|
||||
function ($value) {
|
||||
return $value->trueValue->toBeFalse(); // fails
|
||||
}
|
||||
fn ($value) => $value->trueValue->toBeFalse()
|
||||
)
|
||||
->when(
|
||||
false,
|
||||
function ($value) {
|
||||
return $value->trueValue->toBeFalse(); // fails
|
||||
}
|
||||
fn ($value) => $value->trueValue->toBeFalse()
|
||||
)
|
||||
->foo->toEqual('foo')
|
||||
->and(static::getCount())->toBe(1);
|
||||
@@ -69,9 +65,7 @@ it('skips with falsy closure condition', function (): void {
|
||||
expect($this->whenObject)
|
||||
->when(
|
||||
fn (): string => '0',
|
||||
function ($value) {
|
||||
return $value->trueValue->toBeFalse(); // fails
|
||||
}
|
||||
fn ($value) => $value->trueValue->toBeFalse()
|
||||
)
|
||||
->foo->toEqual('foo')
|
||||
->and(static::getCount())->toBe(1);
|
||||
|
||||
Reference in New Issue
Block a user