1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/tests
Marcus Bointon fb505df807
Fix preg_match_all stub (#4325)
* preg_match_all can return false

* Test for preg_match_all returning false

* Fix test

* Add @psalm-ignore-falsable-return
2021-01-29 11:39:55 +01:00
..
CommandFunctions More return types (#4173) 2021-01-29 11:38:57 +01:00
Config return types (#4311) 2021-01-29 11:39:53 +01:00
EndToEnd Fix tests 2021-01-29 11:39:48 +01:00
FileManipulation Fix #4266 - prevent OOM when analysing closure unioned with invokable class 2021-01-29 11:39:44 +01:00
FileUpdates Fix test result 2021-01-29 11:39:42 +01:00
fixtures return types (#4311) 2021-01-29 11:39:53 +01:00
Internal/Provider return types (#4311) 2021-01-29 11:39:53 +01:00
LanguageServer unused use statements (#4228) 2021-01-29 11:39:42 +01:00
Loop Ignore precondition issues in loop 2021-01-29 11:39:51 +01:00
Progress
Template Add more standard iterators (#4320) 2021-01-29 11:39:54 +01:00
Traits 4.x - skip Stringable test if not in PHP 8.0 2021-01-29 11:39:52 +01:00
TypeReconciliation Prevent features pre-php-8 2021-01-29 11:39:54 +01:00
AlgebraTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
AnnotationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ArgTest.php Use more accurate arguments count 2021-01-29 11:39:55 +01:00
ArrayAccessTest.php Don’t merge array and Traversable to iterable when there are intersections 2021-01-29 11:39:52 +01:00
ArrayAssignmentTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ArrayFunctionCallTest.php Fix #4274 - don’t ignore mixed union in array_shift operation 2021-01-29 11:39:53 +01:00
AssertAnnotationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
AssignmentTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
BadFormatTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
BinaryOperationTest.php Do arithmetic for preg_split arguments 2021-01-29 11:39:53 +01:00
CallableTest.php Fix #4210 - fix __invoke declaration tracing 2021-01-29 11:39:38 +01:00
ClassLoadOrderTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ClassScopeTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ClassStringTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ClassTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
CloneTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ClosureTest.php Fix #4209 - allow hinting arrow function return type 2021-01-29 11:39:38 +01:00
CodebaseTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ComposerLockTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ConstantTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
DeprecatedAnnotationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
DocblockInheritanceTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
DocCommentTest.php Test parallelization (#4045) 2021-01-29 11:38:04 +01:00
DocumentationTest.php Skip faulty documentation key 2021-01-29 11:39:47 +01:00
EnumTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ErrorBaselineTest.php return types (#4311) 2021-01-29 11:39:53 +01:00
ExtendsFinalClassTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
FileDiffTest.php replace deprecated methods with their equivalent (#4217) 2021-01-29 11:39:39 +01:00
FileReferenceTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
ForbiddenCodeTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
FunctionCallTest.php Fix preg_match_all stub (#4325) 2021-01-29 11:39:55 +01:00
GeneratorTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
IfThisIsTest.php Add more tests (interface contained by still faulty) 2020-07-12 20:06:03 +00:00
ImmutableAnnotationTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
IncludeTest.php Fix #4264 - prevent crash when analysing file with duplicate classes 2021-01-29 11:39:44 +01:00
InterfaceTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
InternalAnnotationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
IssueBufferTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
IssueSuppressionTest.php Support multiple issue types in @psalm-suppress (#4179) 2021-01-29 11:39:36 +01:00
JsonOutputTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
junit.xsd Validate junit output against xsd 2020-03-08 20:18:35 -05:00
ListTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
MagicMethodAnnotationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
MagicPropertyTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
MatchTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
MethodCallTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
MethodMutationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
MethodSignatureTest.php Ensure PHP 8 continuation of 7.4 method signature features 2021-01-29 11:39:47 +01:00
MixinAnnotationTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
NamespaceTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
Php40Test.php More return types (#4173) 2021-01-29 11:38:57 +01:00
Php55Test.php More return types (#4173) 2021-01-29 11:38:57 +01:00
Php56Test.php Use more accurate arguments count 2021-01-29 11:39:55 +01:00
Php70Test.php More return types (#4173) 2021-01-29 11:38:57 +01:00
Php71Test.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ProjectCheckerTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
PropertyTypeTest.php feature: universal object crates (#3948) 2021-01-29 11:39:48 +01:00
PsalmPluginTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
PureAnnotationTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
PureCallableTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ReferenceConstraintTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ReportOutputTest.php 4.x - refactor unused variable detection 2021-01-29 11:39:44 +01:00
ReturnTypeTest.php 4.x - refactor unused variable detection 2021-01-29 11:39:44 +01:00
SelfOutTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
StubTest.php unused use statements (#4228) 2021-01-29 11:39:42 +01:00
SwitchTypeTest.php Prevent duplicate switch return types 2021-01-29 11:39:43 +01:00
TaintTest.php 4.x - refactor unused variable detection 2021-01-29 11:39:44 +01:00
TestCase.php Move taint graph functionality into its own object 2021-01-29 11:39:42 +01:00
TestConfig.php replace return; by return null; in every non-void method, add return null; when mising, add return types, remove redundant phpdoc (#4176) 2021-01-29 11:38:58 +01:00
ThrowsAnnotationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ThrowsInGlobalScopeTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
ToStringTest.php 4.x - skip Stringable test if not in PHP 8.0 2021-01-29 11:39:52 +01:00
TraceTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
TraitTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
TryCatchTest.php Fix #4315 - prevent crash when setting unknown property in finally 2021-01-29 11:39:54 +01:00
TypeAnnotationTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00
TypeCombinationTest.php Fix a couple of false-positive redundant conditions 2021-01-29 11:39:38 +01:00
TypeParseTest.php Avoid crash when callable type is missing 2021-01-29 11:39:54 +01:00
UnusedCodeTest.php 4.x - refactor unused variable detection 2021-01-29 11:39:44 +01:00
UnusedVariableTest.php Use more accurate arguments count 2021-01-29 11:39:55 +01:00
VariadicTest.php More return types (#4173) 2021-01-29 11:38:57 +01:00