forked from sebastianbergmann/phpunit
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan-tests.neon
More file actions
50 lines (43 loc) · 3.12 KB
/
Copy pathphpstan-tests.neon
File metadata and controls
50 lines (43 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
parameters:
ignoreErrors:
# https://github.com/phpstan/phpstan/issues/1185
- '#Function xdebug_disable not found.#'
# parent calls are intentionally omitted
- '#Issue244Exception::__construct\(\) does not call parent constructor from Exception.#'
- '#Issue244ExceptionIntCode::__construct\(\) does not call parent constructor from Exception.#'
# these constants are defined in PHPUnit configuration XML, so they can't be detected in PHPStan
- '#Constant PHPUNIT_1330 not found.#'
- '#Constant FOO not found.#'
- '#Constant BAR not found.#'
# global constants does not work properly in PHPStan yet https://github.com/phpstan/phpstan/issues/768
- '#Constant TEST_FILES_PATH not found.#'
- '#Constant GITHUB_ISSUE not found.#'
# This access to undefined property is legit
- '#Access to an undefined property SplObjectStorage::\$foo#'
# intentionally non existent function in tests/Regression/GitHub/3107/Issue3107Test.php
- '#Function does_not_exist not found#'
# https://github.com/sebastianbergmann/phpunit/issues/3129
- '#Access to an undefined property PHPUnit\\Framework\\MockObject\\MockObject::\$constructorArgs#'
- '#Access to an undefined property PHPUnit\\Framework\\MockObject\\MockObject::\$constructorCalled#'
- '#Access to an undefined property PHPUnit\\Framework\\MockObject\\MockObject::\$cloned#'
- '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::foo()#'
- '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::bar()#'
- '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::doSomething()#'
- '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::wrong()#'
- '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::right()#'
- '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::staticMethod()#'
- '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::returnAnything()#'
- '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::mockableMethod()#'
- '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::anotherMockableMethod()#'
- '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::someMethod()#'
- '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject::callback()#'
- '#Call to an undefined method object::ohHai#'
- '#Call to static method bar\(\) on an unknown class Legacy#'
- '#Class ACustomClassName not found#'
- '#Function functionCallback not found while trying to analyse it - autoloading is probably not configured properly#'
- '#Result of method ClassWithAllPossibleReturnTypes::methodWithVoidReturnTypeDeclaration\(\) \(void\) is used#'
excludes_analyse:
- tests/_files/phpunit-example-extension/tests/OneTest.php
- tests/Regression/Trac/783/OneTest.php
- tests/_files/3194.php
- tests/_files/RouterTest.php