-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests // add PHPStan to "tests"-folder.
- Loading branch information
Showing
9 changed files
with
89 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
includes: | ||
- vendor/phpstan/phpstan-mockery/extension.neon | ||
- vendor/phpstan/phpstan-phpunit/extension.neon | ||
- vendor/szepeviktor/phpstan-wordpress/extension.neon | ||
- vendor/phpstan/phpstan-deprecation-rules/rules.neon | ||
- vendor/swissspidy/phpstan-no-private/rules.neon | ||
parameters: | ||
level: 8 | ||
paths: | ||
- src/ | ||
- tests/ | ||
treatPhpDocTypesAsCertain: false | ||
ignoreErrors: | ||
- '#Trait Inpsyde\\Modularity\\Module\\ModuleClassNameIdTrait is used zero times and is not analysed.#' | ||
# TODO: Check how we can point ABSPATH constant in phpstan to vendor/roots/wordpress-no-content/ | ||
- '#Path in require_once\(\) \".*\" is not a file or it does not exist.#' | ||
# It seems like PHPStan does not like us to test classes to have interfaces implemented, but we want | ||
# to ensure that classes are not accidentally loose their interfaces. | ||
- '#Call to static method PHPUnit\\Framework\\Assert::assertInstanceOf\(\) with .* will always evaluate to true#' | ||
- | ||
messages: | ||
- '#Parameter \$object of anonymous function has invalid type [A-Z]#' | ||
- '#Anonymous function should return [A-Z] but returns object#' | ||
- '#Anonymous function has invalid return type [A-Z]#' | ||
- '#Instantiated class [A-Z] not found#' | ||
- '#Class [A-Z] not found.#' | ||
path: tests/unit/Container/ContainerConfiguratorTest.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
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.