-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHPAt tests are now ran by PHPStan. Added PHP 8.0 and 8.1 in CI test matrix.
- Loading branch information
1 parent
be1f2cc
commit 9cd82db
Showing
29 changed files
with
282 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM php:7.2 | ||
FROM php:7.4 | ||
|
||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
services: | ||
- | ||
class: ArchitectureAssertions\Facile\PhpCodec\ArchitectureTest | ||
tags: | ||
- phpat.test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Template type U of method Facile\\\\PhpCodec\\\\Codecs\\:\\:mixed\\(\\) is not referenced in a parameter\\.$#" | ||
count: 1 | ||
path: src/Codecs.php | ||
|
||
- | ||
message: "#^Template type RA of method Facile\\\\PhpCodec\\\\Decoder\\:\\:validate\\(\\) is not referenced in a parameter\\.$#" | ||
count: 1 | ||
path: src/Decoder.php | ||
|
||
- | ||
message: "#^Template type CF of method Facile\\\\PhpCodec\\\\Decoders\\:\\:classFromArrayPropsDecoder\\(\\) is not referenced in a parameter\\.$#" | ||
count: 1 | ||
path: src/Decoders.php | ||
|
||
- | ||
message: "#^Template type T of method Facile\\\\PhpCodec\\\\Decoders\\:\\:classFromArrayPropsDecoder\\(\\) is not referenced in a parameter\\.$#" | ||
count: 1 | ||
path: src/Decoders.php | ||
|
||
- | ||
message: "#^Template type X of method Facile\\\\PhpCodec\\\\Internal\\\\Encode\\:\\:identity\\(\\) is not referenced in a parameter\\.$#" | ||
count: 1 | ||
path: src/Internal/Encode.php | ||
|
||
- | ||
message: "#^Template type VP of method Facile\\\\PhpCodec\\\\Validation\\\\ListOfValidation\\:\\:reduceToIndexedSuccessOrAllFailures\\(\\) is not referenced in a parameter\\.$#" | ||
count: 1 | ||
path: src/Validation/ListOfValidation.php | ||
|
||
- | ||
message: "#^Template type T of method Facile\\\\PhpCodec\\\\Validation\\\\Validation\\:\\:failure\\(\\) is not referenced in a parameter\\.$#" | ||
count: 1 | ||
path: src/Validation/Validation.php | ||
|
||
- | ||
message: "#^Template type T of method Facile\\\\PhpCodec\\\\Validation\\\\Validation\\:\\:failures\\(\\) is not referenced in a parameter\\.$#" | ||
count: 1 | ||
path: src/Validation/Validation.php | ||
|
||
- | ||
message: "#^Template type R of method Tests\\\\Facile\\\\PhpCodec\\\\BaseTestCase\\:\\:asserSuccessSameTo\\(\\) is not referenced in a parameter\\.$#" | ||
count: 1 | ||
path: tests/unit/BaseTestCase.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
includes: | ||
- vendor/phpat/phpat/extension.neon | ||
- phpat.neon | ||
- phpstan-baseline.neon | ||
parameters: | ||
level: 0 | ||
paths: | ||
- src | ||
- tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<files psalm-version="4.8.1@f73f2299dbc59a3e6c4d66cff4605176e728ee69"> | ||
<file src="tests/unit/CodecsTest.php"> | ||
<MixedArgument occurrences="1"/> | ||
<TooManyArguments occurrences="4"/> | ||
</file> | ||
<file src="tests/unit/GeneratorUtils.php"> | ||
<TooManyArguments occurrences="1"/> | ||
</file> | ||
<file src="tests/unit/Internal/Combinators/IntersectionDecoderTest.php"> | ||
<TooManyArguments occurrences="4"> | ||
<code>Generators::oneOf(Generators::int(), Generators::float(), Generators::bool())</code> | ||
<code>Generators::oneOf(Generators::string(), Generators::float(), Generators::bool())</code> | ||
</TooManyArguments> | ||
</file> | ||
<file src="tests/unit/Internal/Combinators/LiteralCodecTest.php"> | ||
<TooManyArguments occurrences="2"/> | ||
</file> | ||
<file src="tests/unit/Internal/Primitives/CallableDecoderTest.php"> | ||
<TooManyArguments occurrences="2"/> | ||
</file> | ||
<file src="tests/unit/Internal/Primitives/NullTypeTest.php"> | ||
<TooManyArguments occurrences="1"/> | ||
</file> | ||
</files> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.