1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/tests
robchett 03e8d19eec Only the binary op 'plus' works with two arrays
Treat the result of any other operation as int|float
Fixes #2123
2023-09-16 15:55:59 +01:00
..
Cache Add test case for property type change not invalidating methods 2023-06-24 14:29:28 +02:00
Config Restore support for namespaced functions in referencedFunction config 2023-09-09 01:47:09 +02:00
EndToEnd Update PsalmRunnerTrait.php 2023-07-01 16:47:42 +02:00
FileManipulation fix offset for type param changes 2023-05-21 18:56:54 +02:00
FileUpdates additional fixes 2022-12-20 21:16:29 +00:00
fixtures make stubbed constant types configurable with comment 2023-07-03 22:28:25 +02:00
Internal Flag invalid declares 2023-09-02 23:41:50 +02:00
LanguageServer Update tests to account for new progress protocol 2023-07-26 05:16:37 +02:00
Loop Refine arrays in foreach loops to non-empty-array 2023-02-22 20:44:50 -04:00
Progress
ReturnTypeProvider code style + update tests 2023-08-04 23:56:47 +02:00
Template qa: modify tests since array keys are not mixed for ArrayObject 2023-09-10 16:06:56 +02:00
Traits #10026 cleanup phpcs 2023-07-21 22:57:49 +02:00
Type
TypeReconciliation Fix #9997 2023-08-05 17:07:08 +02:00
AlgebraTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
AnnotationTest.php #10026 fixed AnnotationTest 2023-07-19 22:52:15 +02:00
ArgTest.php Fix tests 2023-04-19 11:56:04 +02:00
ArrayAccessTest.php Fix crash on array access to undefined class 2023-08-20 23:45:30 +02:00
ArrayAssignmentTest.php qa: modify tests since array keys are not mixed for ArrayObject 2023-09-10 16:06:56 +02:00
ArrayFunctionCallTest.php Fixes 2023-04-21 15:58:05 +02:00
ArrayKeysTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
AssertAnnotationTest.php bugfix: properly inherit assertions from parents or implemented interfaces 2023-08-28 01:12:28 +02:00
AssignmentTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
AsyncTestCase.php async test case fixes 2022-12-20 21:26:25 +00:00
AttributeTest.php Use 8.2 in tests for 8.2 attributes 2023-03-03 04:39:04 -04:00
BadFormatTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
BinaryOperationTest.php Only the binary op 'plus' works with two arrays 2023-09-16 15:55:59 +01:00
ByIssueLevelAndTypeReportTest.php Introduce and use IssueData constants for severity 2023-05-31 12:38:15 +02:00
CallableTest.php Fix variadic callable type check 2023-07-30 11:43:07 +03:00
CastTest.php Recognize casts from object-with-properties to array 2022-12-16 20:12:02 -04:00
CheckTypeTest.php Fix crashes with invalid @psalm-check-type syntax 2023-02-09 17:49:49 -04:00
ClassLikeDocblockParserTest.php
ClassLikeStringTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
ClassLoadOrderTest.php Add codesniffer rules and expand php-cs-fixer to bin and test 2022-12-14 13:29:09 -06:00
ClassScopeTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
ClassTest.php qa: modify tests since array keys are not mixed for ArrayObject 2023-09-10 16:06:56 +02:00
CloneTest.php Add codesniffer rules and expand php-cs-fixer to bin and test 2022-12-14 13:29:09 -06:00
ClosureTest.php Forbid first-class callables in new 2023-02-19 04:18:32 -04:00
CodebaseTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
CommentAnalyzerTest.php Updated docs for comments in Array Shapes with // in the key 2023-07-15 20:15:37 +02:00
ComposerLockTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
ConstantTest.php Change __LINE__ to a positive-int 2023-06-17 12:24:09 +01:00
ConstValuesTest.php Add codesniffer rules and expand php-cs-fixer to bin and test 2022-12-14 13:29:09 -06:00
CoreStubsTest.php Fix glob CallMap and stub to prevent crash on alpine (and possibly other systems) 2023-06-25 13:17:13 +02:00
DateTimeTest.php #10026 cleanup phpcs 2023-07-21 22:57:49 +02:00
DeprecatedAnnotationTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
DocblockInheritanceTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
DocCommentTest.php Indent docblocks in DocComment test 2023-01-20 18:15:07 -04:00
DocumentationTest.php Fix test 2023-02-15 03:02:34 -04:00
EnumTest.php qa: add test to verify backed enums are no literals 2023-08-25 23:53:58 +02:00
ErrorBaselineTest.php Introduce and use IssueData constants for severity 2023-05-31 12:38:15 +02:00
ExpressionTest.php Correctly handle near-overflowing keys and flag autoincrement overflows 2023-03-12 19:57:14 -04:00
ExtendsFinalClassTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
ExtensionRequirementTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
ExtLibxmlStubTest.php Fix dom_import_simplexml() 2023-01-18 18:31:54 -05:00
FFITest.php FFI Stubs: Define a set of tests. 2023-02-21 23:08:58 +01:00
FileDiffTest.php Consider a property type change as a signature change 2023-06-24 15:31:15 +02:00
FileReferenceTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
ForbiddenCodeTest.php forbidden function bug and better get_defined_functions() signature 2022-12-24 12:34:40 -06:00
FunctionCallTest.php fix failing tests and shepherd 2023-07-02 08:33:43 +02:00
FunctionLikeDocblockParserTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
GeneratorTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
IfThisIsTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
ImmutableAnnotationTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
ImplementationRequirementTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
IncludeTest.php Handle included directory paths without crashing 2023-04-24 11:09:48 +12:00
InterfaceTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
InternalAnnotationTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
IntersectionTypeTest.php qa: introduce failing test for type-aliased intersection string 2023-04-11 20:29:08 +02:00
IntRangeTest.php Fix crash when int range boundary is overflown 2023-02-09 22:57:57 -04:00
IssueBufferTest.php Introduce and use IssueData constants for severity 2023-05-31 12:38:15 +02:00
IssueSuppressionTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
JsonOutputTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
junit.xsd
KeyOfArrayTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
ListTest.php Add codesniffer rules and expand php-cs-fixer to bin and test 2022-12-14 13:29:09 -06:00
MagicMethodAnnotationTest.php Add support for @psalm-no-seal-properties and @psalm-no-seal-methods 2023-04-20 07:47:50 +01:00
MagicPropertyTest.php Add support for @psalm-no-seal-properties and @psalm-no-seal-methods 2023-04-20 07:47:50 +01:00
MatchTest.php Test match on class const fetch 2023-05-04 17:21:50 +03:00
MethodCallTest.php Add test 2023-08-12 12:28:23 +02:00
MethodMutationTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
MethodSignatureTest.php Do not require return type on destructors in interfaces 2022-12-26 15:45:44 -04:00
MixinAnnotationTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
NamespaceTest.php Add codesniffer rules and expand php-cs-fixer to bin and test 2022-12-14 13:29:09 -06:00
NativeIntersectionsTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
NativeUnionsTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
Php40Test.php Add codesniffer rules and expand php-cs-fixer to bin and test 2022-12-14 13:29:09 -06:00
Php55Test.php Add codesniffer rules and expand php-cs-fixer to bin and test 2022-12-14 13:29:09 -06:00
Php56Test.php Add codesniffer rules and expand php-cs-fixer to bin and test 2022-12-14 13:29:09 -06:00
Php70Test.php Add codesniffer rules and expand php-cs-fixer to bin and test 2022-12-14 13:29:09 -06:00
Php71Test.php Add codesniffer rules and expand php-cs-fixer to bin and test 2022-12-14 13:29:09 -06:00
ProjectCheckerTest.php Support project analysis with file diffing in tests 2023-06-24 14:29:28 +02:00
PropertiesOfTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
PropertyTypeInvarianceTest.php readonly does not have write access, therefore is safe as long as the type is contained in the parent type 2023-06-09 12:37:41 +02:00
PropertyTypeTest.php Fix #9997 2023-08-05 17:07:08 +02:00
PsalmPluginTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
PureAnnotationTest.php DateTimeZone::getName() always returns non-empty-string and cannot be constructed with an empty string 2023-09-09 23:48:49 +01:00
PureCallableTest.php Add codesniffer rules and expand php-cs-fixer to bin and test 2022-12-14 13:29:09 -06:00
ReadonlyPropertyTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
ReferenceConstraintTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
ReferenceTest.php UnsupportedPropertyReferenceUsage 2023-05-12 14:12:12 -05:00
ReflectionTest.php Reflection class stub updates 2022-12-18 14:35:41 -06:00
ReportOutputTest.php Introduce and use IssueData constants for severity 2023-05-31 12:38:15 +02:00
ReturnTypeTest.php Intersect template 2023-06-02 14:48:20 +03:00
somefile.php
StubTest.php make stubbed constant types configurable with comment 2023-07-03 22:28:25 +02:00
SuperGlobalsTest.php Merge pull request #9001 from fluffycondor/http_response_header-non-empty-list 2022-12-28 00:27:30 +01:00
SwitchTypeTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
TaintTest.php Fix typo 2023-08-26 21:54:26 +02:00
TestCase.php Require trailing commas 2022-12-18 13:20:31 -06:00
TestConfig.php Require trailing commas 2022-12-18 13:20:31 -06:00
TestEnvironmentTest.php Added the test to validate test environment itself 2023-02-19 03:52:12 -04:00
ThisOutTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
ThrowsAnnotationTest.php Fix MissingThrowsDocblock when documented interface is extended by thrown exception interface 2023-03-16 12:01:16 +01:00
ThrowsInGlobalScopeTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
ToStringTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
TraceTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
TraitTest.php PHP 8.2 attributes moved to 8.2 stub 2023-03-03 04:28:37 -04:00
TryCatchTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
TypeAnnotationTest.php always combine the result of expansions 2023-03-23 20:51:34 +01:00
TypeCombinationTest.php Fix combination of non-falsy-string and falsy literal 2023-07-24 09:07:46 +02:00
TypeComparatorTest.php Update 2023-04-19 12:37:06 +02:00
TypeParseTest.php Rewrite 2023-04-21 15:49:37 +02:00
UnresolvableIncludeTest.php Require trailing commas 2022-12-18 13:20:31 -06:00
UnsupportedPropertyReferenceUsage.php GH-9825 2023-05-26 18:03:05 -04:00
UnusedCodeTest.php Added to documentation and tests that api can be used instead of psalm-api 2023-03-20 13:34:44 +01:00
UnusedVariableTest.php UnsupportedPropertyReferenceUsage 2023-05-12 14:12:12 -05:00
ValueOfTest.php feature: provide support for templated value-of enum values 2023-04-15 00:38:12 +02:00
VariadicTest.php Require trailing commas 2022-12-18 13:20:31 -06:00