1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
psalm/tests
Bruce Weirdan 9027bc6190 Added SuicidalAutoloader test (#2399)
The idea behind this is that Psalm should not use project autoloader for
its own things. So if we have a project with autoloader and no code,
then any project autoloader hit means Psalm failed to load something
itself.

Right now it highlights several issues in CoreGenericClasses stub:
- usage of `callback` instead of `callable`
- `@property-read` not resolving template parameters
2019-11-30 00:09:07 -05:00
..
Config Implement type-checking and forbidding for print (#2314) 2019-11-08 07:01:34 -05:00
EndToEnd Added SuicidalAutoloader test (#2399) 2019-11-30 00:09:07 -05:00
FileManipulation Preserve self refs where possible 2019-11-16 19:59:08 -05:00
FileUpdates Fix #1973 - bust method mutation cache when reloading language server 2019-07-28 10:05:51 -04:00
fixtures Added SuicidalAutoloader test (#2399) 2019-11-30 00:09:07 -05:00
Internal/Provider Add a few more list types 2019-10-08 19:06:16 -04:00
LanguageServer Fix #2157 - don’t merge closures and callable params 2019-09-22 00:58:30 -04:00
Loop Fix foreach test 2019-11-29 11:29:22 -05:00
Progress Add framework for taint analysis to Psalm 2019-08-04 10:37:36 -04:00
Template Add test that should always work 2019-11-29 11:25:29 -05:00
Traits Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
AlgebraTest.php Use better system for storing inferred types and assertions 2019-11-25 11:44:54 -05:00
AnnotationTest.php Fix test 2019-11-21 16:51:23 -05:00
ArgTest.php Normalize stringified type names (#2239) 2019-10-17 01:14:33 -04:00
ArrayAccessTest.php Use more accurate way to determine list size 2019-11-26 16:34:19 -05:00
ArrayAssignmentTest.php Fix #2379 - support spread array RFC 2019-11-27 02:07:17 -05:00
AssertAnnotationTest.php Refine lists with object-like array types 2019-11-26 12:22:28 -05:00
AssertTest.php Improve assertion calculation on mixed vars 2019-11-12 10:12:07 -05:00
AssignmentTest.php Use the correct types for AssignmentRef (#2078) 2019-08-27 23:19:09 -04:00
BadFormatTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
BinaryOperationTest.php Fix #2339 - add support for null coalescing operator 2019-11-27 00:34:23 -05:00
CallableTest.php Break apart callabletest 2019-11-29 23:46:21 -05:00
ClassLoadOrderTest.php
ClassScopeTest.php
ClassStringTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ClassTest.php Use unalised trait name when importing aliased trait (#2393) 2019-11-29 01:21:00 -05:00
ClosureTest.php Break apart callabletest 2019-11-29 23:46:21 -05:00
CodebaseTest.php Fix #2150 - add detection for unnecessary @var annotations 2019-09-19 11:59:43 -04:00
ComposerLockTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ConstantTest.php Fix #2139 - allow comprehension of constant ternaries 2019-09-17 11:29:41 -04:00
DeprecatedAnnotationTest.php Fix #2028 - warn when using deprecated class in function signature 2019-08-22 11:25:13 -04:00
DocblockInheritanceTest.php Fix #2166 - inherit twice from docblocks 2019-09-25 12:02:59 -04:00
DocumentationTest.php Fix phpcs issues 2019-11-11 10:11:42 -05:00
EmptyTest.php Fix #2333 - don’t create array after empty check 2019-11-14 14:23:33 -05:00
EnumTest.php
ErrorBaselineTest.php Support comments in ErrorBaseline (#2311) 2019-11-07 13:03:18 -05:00
FileDiffTest.php Add a few more list types 2019-10-08 19:06:16 -04:00
FileReferenceTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ForbiddenCodeTest.php
FunctionCallTest.php Added array_key_first and array_key_last stubs (#2381) 2019-11-27 10:59:12 -05:00
ImmutableAnnotationTest.php Fix #2182 - allow modification to cloned objects inside 2019-09-30 22:07:20 -04:00
IncludeTest.php Fix #1940 - allow proper evaluation of /a/b/../../ 2019-07-12 14:28:21 -04:00
InterfaceTest.php Fix #1846 - warn about missing interface return types 2019-07-28 19:03:12 -04:00
InternalAnnotationTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
IssetTest.php Fix dupe key 2019-11-25 16:00:16 -05:00
IssueSuppressionTest.php Track exception suppressions (#2211) 2019-10-04 14:01:58 -04:00
JsonOutputTest.php Normalize stringified type names (#2239) 2019-10-17 01:14:33 -04:00
ListTest.php Fully qualify constants and function calls (#1849) 2019-06-26 16:52:29 -04:00
MagicMethodAnnotationTest.php Normalize stringified type names (#2239) 2019-10-17 01:14:33 -04:00
MagicPropertyTest.php Fix #1869 - don’t memoize magic properties after set 2019-07-06 00:00:17 -04:00
MethodCallTest.php Fix #2290 - detect call on void type 2019-11-01 13:05:28 +00:00
MethodMutationTest.php Normalize stringified type names (#2239) 2019-10-17 01:14:33 -04:00
MethodSignatureTest.php Support covariant return types & contravariant param types 2019-11-27 00:19:36 -05:00
NamespaceTest.php
Php40Test.php
Php55Test.php Normalize stringified type names (#2239) 2019-10-17 01:14:33 -04:00
Php56Test.php Add support for list type 2019-10-08 18:44:46 -04:00
Php70Test.php Normalize stringified type names (#2239) 2019-10-17 01:14:33 -04:00
Php71Test.php Fix #2252 - allow destructuring of ArrayAccess objects 2019-10-22 11:17:42 -04:00
ProjectCheckerTest.php Fix #2228 - load functions defined on traits included in a class 2019-10-15 12:09:08 -04:00
PropertyTypeTest.php Allow isset to check for property initialisation 2019-11-28 09:12:17 -05:00
PsalmInternalAnnotationTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
PsalmPluginTest.php Clean up more unused @psalm-suppress annotations 2019-08-18 16:59:56 -04:00
PureAnnotationTest.php Fix #2114 - make builtin constructors mutation free 2019-09-21 21:07:27 -04:00
RedundantConditionTest.php Add skipped test to sure some stuff that should break 2019-10-18 15:27:48 -04:00
ReferenceConstraintTest.php
ReportOutputTest.php Normalize stringified type names (#2239) 2019-10-17 01:14:33 -04:00
ReturnTypeTest.php Normalize stringified type names (#2239) 2019-10-17 01:14:33 -04:00
ScopeTest.php Normalize stringified type names (#2239) 2019-10-17 01:14:33 -04:00
StubTest.php Remove stray comma 2019-09-01 16:55:03 -04:00
SwitchTypeTest.php Use better system for storing inferred types and assertions 2019-11-25 11:44:54 -05:00
TaintTest.php Improve report output of taint analysis 2019-10-19 17:59:10 -04:00
TestCase.php Clean up more unused @psalm-suppress annotations 2019-08-18 16:59:56 -04:00
TestConfig.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ThrowsAnnotationTest.php Fix #2222 - check for @throws docblock inheritance 2019-10-10 22:44:21 -04:00
ThrowsInGlobalScopeTest.php Remove unused suppressions in tests 2019-08-18 15:34:32 -04:00
ToStringTest.php Fix #2026 - add support for calling __toString implicitly after method_exists 2019-08-16 11:33:58 -04:00
TraitTest.php Fix #2091 - $this properties should be replaced in trait types 2019-09-01 15:45:28 -04:00
TryCatchTest.php Fix handling of do... while vars defined in try 2019-11-11 18:24:43 -05:00
TypeAlgebraTest.php Fix #2159 - only apply elseif conditions to vars that exist in main context 2019-09-21 16:58:31 -04:00
TypeAnnotationTest.php
TypeCombinationTest.php Normalize stringified type names (#2239) 2019-10-17 01:14:33 -04:00
TypeParseTest.php Fix #2362 - support single value type in docblocks 2019-11-21 10:44:24 -05:00
TypeReconciliationTest.php Use better system for storing inferred types and assertions 2019-11-25 11:44:54 -05:00
TypeTest.php Normalize stringified type names (#2239) 2019-10-17 01:14:33 -04:00
UnusedCodeTest.php Allow array_map alone when it uses a closure 2019-09-09 21:28:56 -04:00
UnusedVariableTest.php Fix #2358 - always analyse new XXX(...) in unknown method calls 2019-11-18 16:14:21 -05:00
ValueTest.php Fix #2362 - support single value type in docblocks 2019-11-21 10:44:24 -05:00
VariadicTest.php