1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
psalm/tests
m0003r 77270dc9b7
Getters automagic (#3122)
* When method is a plain getter: (1) correct method return type if property type is known (2) auto assert-if-true that corresponding property is not falsy

* do not use getter automagic if getter is overridden somewhere
2020-04-12 08:40:24 -04:00
..
command_functions Ensured resetting previous memory limit in after test has run. 2020-02-24 21:19:16 -05:00
Config Fix #3009 - make sure return type is set when returning early 2020-03-23 13:25:55 -04:00
EndToEnd Make config generation smarter 2020-02-17 22:05:58 -05:00
FileManipulation Use more accurate means of determining whether function did return 2020-03-28 23:37:42 -04:00
FileUpdates Improve file invalidation when using --diff mode 2020-04-02 17:18:04 -04:00
fixtures Allow types to be traversed 2020-03-14 23:54:51 -04:00
Internal/Provider Improve file invalidation when using --diff mode 2020-04-02 17:18:04 -04:00
LanguageServer Be better about strict inference 2020-03-25 09:18:49 -04:00
Loop Fix a few more edge-cases 2020-04-12 01:26:11 -04:00
Progress
Template Fix #3116 - allow class to be compared to a templated class-string 2020-04-10 00:26:11 -04:00
Traits Fix deprecated call 2020-04-03 14:56:11 -04:00
TypeReconciliation Fix a few more edge-cases 2020-04-12 01:26:11 -04:00
AlgebraTest.php Fix a test thing 2020-03-29 19:51:13 -04:00
AnnotationTest.php Consolidate generator tests 2020-04-06 08:57:18 -04:00
ArgTest.php Things with mixed values can be the same 2020-03-23 12:08:05 -04:00
ArrayAccessTest.php Fix #2787 - make accessing undefined objectlike key an error 2020-02-22 00:29:59 -05:00
ArrayAssignmentTest.php Improve ergonomics of array assignment 2020-04-11 17:50:24 -04:00
ArrayFunctionCallTest.php Fix #3061 - prevent array_key_exists from completely changing type 2020-04-03 08:05:21 -04:00
AssertAnnotationTest.php Fix $assertion_var_id calculation in method calls (#3115) 2020-04-09 23:03:53 -04:00
AssignmentTest.php Use the correct types for AssignmentRef (#2078) 2019-08-27 23:19:09 -04:00
BadFormatTest.php Add return type 2020-01-04 16:35:06 -05:00
BinaryOperationTest.php Fix #2940 - fix array offset assignment under ??= 2020-03-09 14:09:41 -04:00
CallableTest.php Merge with mixed in nested arrays 2020-04-09 09:27:21 -04:00
ClassLoadOrderTest.php
ClassScopeTest.php Prevent self/static refs outside classes 2020-03-01 17:25:55 -05:00
ClassStringTest.php Fix resolution of get_called_class 2020-03-27 09:51:53 -04:00
ClassTest.php Improve treatment of static in intersection 2020-03-27 19:17:44 -04:00
ClosureTest.php Break apart callabletest 2019-11-29 23:46:21 -05:00
CodebaseTest.php Move Union::getTypes to Union::getAtomicTypes 2020-01-04 12:20:26 -05:00
ComposerLockTest.php
ConstantTest.php Fix #3014 - change constant class access rules 2020-03-29 09:47:29 -04:00
DeprecatedAnnotationTest.php Fix #2721 - only warn about deprecated classes exactly where they are used 2020-02-22 01:12:19 -05:00
DocblockInheritanceTest.php Fix #2166 - inherit twice from docblocks 2019-09-25 12:02:59 -04:00
DocCommentTest.php Dont add newline before return (#2969) 2020-03-13 12:40:08 -04:00
DocumentationTest.php Refactor reference checks to use more appropriate properties 2020-03-28 16:30:56 -04:00
EnumTest.php
ErrorBaselineTest.php Fix commas 2020-02-16 18:30:05 -05:00
FileDiffTest.php Allow types to be traversed 2020-03-14 23:54:51 -04:00
FileReferenceTest.php Refactor reference checks to use more appropriate properties 2020-03-28 16:30:56 -04:00
ForbiddenCodeTest.php
FunctionCallTest.php Fix #3092 - round always returns a float 2020-04-09 23:31:26 -04:00
GeneratorTest.php Ensure Generator return types are enforced for a function using yield from 2020-04-06 09:23:13 -04:00
ImmutableAnnotationTest.php Detect assigning collections of mutable objects in immutable 2020-03-15 00:21:20 -04:00
IncludeTest.php make skipping of checks after invalid includes configurable 2020-02-27 18:49:23 -05:00
InterfaceTest.php Improve handling of interface-implementing edge-case 2020-01-02 15:24:03 -05:00
InternalAnnotationTest.php
IssueBufferTest.php Fix even more commas 2020-02-16 18:40:59 -05:00
IssueSuppressionTest.php Support suppressing all issues with @psalm-suppress all (#2584) 2020-01-12 10:38:32 -05:00
JsonOutputTest.php Make link part of IssueData so it’s available to all consumers 2020-03-19 16:22:43 -04:00
junit.xsd Validate junit output against xsd 2020-03-08 20:18:35 -05:00
ListTest.php
MagicMethodAnnotationTest.php Fix #3107 - prevent bad @method with dash 2020-04-09 12:16:58 -04:00
MagicPropertyTest.php Initial commit (#3013) 2020-03-24 18:32:57 -04:00
MethodCallTest.php Getters automagic (#3122) 2020-04-12 08:40:24 -04:00
MethodMutationTest.php Use MethodIdentifier object instead of string 2020-02-14 20:54:26 -05:00
MethodSignatureTest.php Fix false positive in trait comparison in 7.4 2020-04-03 15:11:37 -04:00
MixinAnnotationTest.php Fix #2989 - delay @mixin hydration until parent methods inherited 2020-03-18 21:38:53 -04:00
NamespaceTest.php
Php40Test.php
Php55Test.php Consolidate generator tests 2020-04-06 08:57:18 -04:00
Php56Test.php Consolidate generator tests 2020-04-06 08:57:18 -04:00
Php70Test.php Consolidate generator tests 2020-04-06 08:57:18 -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 Fix #3096 - forget clauses in context after call 2020-04-08 01:03:37 -04:00
PsalmInternalAnnotationTest.php
PsalmPluginTest.php Clean up more unused @psalm-suppress annotations 2019-08-18 16:59:56 -04:00
PureAnnotationTest.php Fix #2956 - treat Exception::getMessage as final and mutation-free 2020-03-10 15:12:55 -04:00
ReferenceConstraintTest.php Fix #2910 - prevent ternaries from ever being considered valid reference 2020-03-04 22:30:53 -05:00
ReportOutputTest.php Don’t modify contents of IssueBuffer in baseline before caching 2020-03-31 23:38:58 -04:00
ReturnTypeTest.php Consolidate generator tests 2020-04-06 08:57:18 -04:00
StubTest.php Fix #2191 - allow inheritance from stub-only files 2020-03-29 00:13:01 -04:00
SwitchTypeTest.php Add some limits on switch case assertion calculation 2020-03-30 00:20:00 -04:00
TaintTest.php Improve report output of taint analysis 2019-10-19 17:59:10 -04:00
TestCase.php Allow PHPUnit 9 (#3072) 2020-04-05 17:25:00 -04:00
TestConfig.php TestCase/TestConfig: Allow plugins to reuse these files 2020-02-24 21:20:06 -05:00
ThrowsAnnotationTest.php Ignore exceptions already caught by previous catch 2020-03-08 20:19:56 -05:00
ThrowsInGlobalScopeTest.php Remove unused suppressions in tests 2019-08-18 15:34:32 -04:00
ToStringTest.php Fix #2712 - allow __toString to have more specific type 2020-01-29 22:28:40 -05:00
TraceTest.php @psalm-trace is now a specific low-level issue, because plain debug print breaks structured output (after #3080) (#3106) 2020-04-08 21:03:05 -04:00
TraitTest.php Fix location of traits 2020-03-02 23:07:21 -05:00
TryCatchTest.php Fix handling of do... while vars defined in try 2019-11-11 18:24:43 -05:00
TypeAnnotationTest.php
TypeCombinationTest.php Improve ergonomics of array assignment 2020-04-11 17:50:24 -04:00
TypeParseTest.php Support intersection types for object-like arrays (#3064) 2020-04-08 09:35:53 -04:00
UnusedCodeTest.php Refactor reference checks to use more appropriate properties 2020-03-28 16:30:56 -04:00
UnusedVariableTest.php Refactor reference checks to use more appropriate properties 2020-03-28 16:30:56 -04:00
VariadicTest.php #2579 TooManyArguments was triggered if the variadic function declared at the autoloader file. Fixed. (#2580) 2020-01-12 11:33:38 -05:00