mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
chore: style changes
This commit is contained in:
@ -8,11 +8,11 @@ $finder = PhpCsFixer\Finder::create()
|
|||||||
->append(['.php-cs-fixer.dist.php']);
|
->append(['.php-cs-fixer.dist.php']);
|
||||||
|
|
||||||
$rules = [
|
$rules = [
|
||||||
'@Symfony' => true,
|
'@Symfony' => true,
|
||||||
'phpdoc_no_empty_return' => false,
|
'phpdoc_no_empty_return' => false,
|
||||||
'array_syntax' => ['syntax' => 'short'],
|
'array_syntax' => ['syntax' => 'short'],
|
||||||
'yoda_style' => false,
|
'yoda_style' => false,
|
||||||
'binary_operator_spaces' => [
|
'binary_operator_spaces' => [
|
||||||
'operators' => [
|
'operators' => [
|
||||||
'=>' => 'align',
|
'=>' => 'align',
|
||||||
'=' => 'align',
|
'=' => 'align',
|
||||||
|
|||||||
@ -55,11 +55,6 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: src/Console/Command.php
|
path: src/Console/Command.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: src/Datasets.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Method Pest\\\\Datasets\\:\\:getDataSetsCombinations\\(\\) has parameter \\$combinations with no value type specified in iterable type array\\.$#"
|
message: "#^Method Pest\\\\Datasets\\:\\:getDataSetsCombinations\\(\\) has parameter \\$combinations with no value type specified in iterable type array\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
@ -75,11 +70,6 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: src/Datasets.php
|
path: src/Datasets.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Parameter \\#1 \\$key of static method Pest\\\\Datasets\\:\\:getDataSetDescription\\(\\) expects int\\|string, mixed given\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: src/Datasets.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
|
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
|||||||
@ -194,7 +194,7 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->printEvent(self::TEST_STARTED, [
|
$this->printEvent(self::TEST_STARTED, [
|
||||||
self::NAME => $test->getName(),
|
self::NAME => $test->getName(),
|
||||||
// @phpstan-ignore-next-line
|
// @phpstan-ignore-next-line
|
||||||
self::LOCATION_HINT => self::PROTOCOL . $test->toString(),
|
self::LOCATION_HINT => self::PROTOCOL . $test->toString(),
|
||||||
]);
|
]);
|
||||||
|
|||||||
@ -47,7 +47,7 @@ it('runs with truthy', function () {
|
|||||||
|
|
||||||
return $value->toEqual('bar');
|
return $value->toEqual('bar');
|
||||||
},
|
},
|
||||||
true => function ($value) {
|
true => function ($value) {
|
||||||
$this->matched = 'foo';
|
$this->matched = 'foo';
|
||||||
|
|
||||||
return $value->toEqual('foo');
|
return $value->toEqual('foo');
|
||||||
@ -88,7 +88,7 @@ it('runs with truthy closure condition', function () {
|
|||||||
|
|
||||||
return $value->toEqual('bar');
|
return $value->toEqual('bar');
|
||||||
},
|
},
|
||||||
true => function ($value) {
|
true => function ($value) {
|
||||||
$this->matched = 'foo';
|
$this->matched = 'foo';
|
||||||
|
|
||||||
return $value->toEqual('foo');
|
return $value->toEqual('foo');
|
||||||
@ -141,7 +141,7 @@ it('can be used in higher order tests')
|
|||||||
false => function ($value) {
|
false => function ($value) {
|
||||||
return $value->toBeFalse();
|
return $value->toBeFalse();
|
||||||
},
|
},
|
||||||
true => function ($value) {
|
true => function ($value) {
|
||||||
return $value->toBeTrue();
|
return $value->toBeTrue();
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user