1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
psalm/tests
Jarred Stelfox 3c69c78ee3 TestCase/TestConfig: Allow plugins to reuse these files
See: https://github.com/vimeo/psalm/issues/2869\#issuecomment-590490908

Previously, If a plugin tried to reuse the TestConf / TestCase
an exception would likely occur since the default testconfig
is hardcoded to our internal psalm codebase

This commit allows a custom config to be passed into a testcase
thus, a plugin's codebase does not need to match our own.
2020-02-24 21:20:06 -05:00
..
command_functions Ensured resetting previous memory limit in after test has run. 2020-02-24 21:19:16 -05:00
Config Update level config name 2020-02-17 22:43:13 -05:00
EndToEnd Make config generation smarter 2020-02-17 22:05:58 -05:00
FileManipulation Fix #2857 - use correct location for byref vars 2020-02-21 00:42:52 -05:00
FileUpdates Replace issue data array with object 2020-02-16 18:24:40 -05:00
fixtures Make config generation smarter 2020-02-17 22:05:58 -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 formatting 2020-01-24 14:08:01 -05:00
Progress
Template Fix #2874 - understand doubly-inherited interface templates 2020-02-24 17:58:44 -05:00
Traits
TypeReconciliation Fix #1311 - narrow scalar properly, exploding constituent types 2020-02-22 20:25:13 -05:00
AlgebraTest.php Only warn about clauses in the currently-scanned conditional 2019-12-08 16:35:56 -05:00
AnnotationTest.php Fix #2765 - properly fix namespaced @throws self 2020-02-13 13:01:53 -05:00
ArgTest.php Allow unpacking of list args with known elements 2020-01-21 10:13:37 -05:00
ArrayAccessTest.php Fix #2787 - make accessing undefined objectlike key an error 2020-02-22 00:29:59 -05:00
ArrayAssignmentTest.php Fix union-of-mixed array key creation 2020-02-22 21:13:14 -05:00
ArrayFunctionCallTest.php Fix #2852 - no duplicatearraykey warning for non string-keyed arrays 2020-02-21 01:27:42 -05:00
AssertAnnotationTest.php Revert countable checks 2020-01-31 15:24:44 -05: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 #2339 - add support for null coalescing operator 2019-11-27 00:34:23 -05:00
CallableTest.php Fix #2871 - prevent keyed arrays from being interpreted as callables 2020-02-24 16:19:33 -05:00
ClassLoadOrderTest.php
ClassScopeTest.php
ClassStringTest.php Fix #2505 - don’t attempt to analyse classes that weren‘t properly scanned 2019-12-31 08:04:51 -05:00
ClassTest.php Fix #1555 - allow phantom class constants 2020-02-18 19:46:05 -05: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 #2844 - resolve constant offset references 2020-02-21 15:56:30 -05: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
DocumentationTest.php Fix #2712 - allow __toString to have more specific type 2020-01-29 22:28:40 -05:00
EnumTest.php
ErrorBaselineTest.php Fix commas 2020-02-16 18:30:05 -05:00
FileDiffTest.php Remove some unnecessary errors 2020-02-06 23:10:18 -05:00
FileReferenceTest.php
ForbiddenCodeTest.php
FunctionCallTest.php Forbid array<mixed, ...> 2020-02-21 01:26:51 -05:00
ImmutableAnnotationTest.php Fix #2242 - warn when using mutable dependencies 2020-02-22 10:04:46 -05:00
IncludeTest.php
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 Fix tests to add new property 2020-02-17 16:43:50 -05:00
ListTest.php
MagicMethodAnnotationTest.php Fix #2723 - use magic method return type where necessary 2020-02-01 18:21:32 -05:00
MagicPropertyTest.php Add config flag to support properties without a magic getter 2020-02-02 14:23:38 -05:00
MethodCallTest.php Fix #2784 - no crash when get_class arg is mixed 2020-02-10 14:44:33 -05:00
MethodMutationTest.php Use MethodIdentifier object instead of string 2020-02-14 20:54:26 -05:00
MethodSignatureTest.php Fix abstract trait method implementation errors when using self 2020-01-24 11:15:35 -05:00
MixinAnnotationTest.php Don’t complain about method mismatches for @mixin 2020-01-06 18:04:28 -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 Add support for @psalm-readonly-allow-private-mutation 2020-02-02 15:56:08 -05:00
PsalmInternalAnnotationTest.php
PsalmPluginTest.php Clean up more unused @psalm-suppress annotations 2019-08-18 16:59:56 -04:00
PureAnnotationTest.php Fix #2866 - prevent use of impure __toString via concatenation in pure contexts 2020-02-24 14:50:34 -05:00
ReferenceConstraintTest.php Fix #2593 - don’t crash with bad @param-out annotation 2020-01-11 10:47:31 -05:00
ReportOutputTest.php Fix tests to add new property 2020-02-17 16:43:50 -05:00
ReturnTypeTest.php Fix #2349 - use function suppressed issues 2019-12-31 09:16:49 -05:00
StubTest.php Fix #701 - indicate issues fixable with Psalter 2019-12-02 15:24:01 -05:00
SwitchTypeTest.php Fix bad assertion 2020-02-06 16:32:26 -05:00
TaintTest.php Improve report output of taint analysis 2019-10-19 17:59:10 -04:00
TestCase.php TestCase/TestConfig: Allow plugins to reuse these files 2020-02-24 21:20:06 -05:00
TestConfig.php TestCase/TestConfig: Allow plugins to reuse these files 2020-02-24 21:20:06 -05:00
ThrowsAnnotationTest.php Remove lines 2020-01-17 12:13:29 -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
TraitTest.php Fix #2521 - use correct context class when analysing trait 2019-12-28 15:56:26 -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 Fix return type checks 2020-02-22 11:28:24 -05:00
TypeParseTest.php Fix return type checks 2020-02-22 11:28:24 -05:00
UnusedCodeTest.php The current method is used 2020-01-01 18:33:12 -05:00
UnusedVariableTest.php Fix #2705 - mark by-ref args as used if not variables already 2020-01-29 21:46:30 -05: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