1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/tests
Barney Laurance ea83068deb Allow resolving directories from config file location (continued) (#1910)
* Extract function getPsalmHelpText() from psalm.php

* Extract initialiseConfig from psalm.php

* Add -c as valid short option for psalter and psalm-refactor

* Use initialiseConfig in psalter, psalm-refactor and psalm-language-server as well as psalm

* Rely on psalm --alter resolving directory from config file in test

* Remove erronous condition for config file path

This code was based on me wrongly thinking that the config file location
was seprated from the argument name with a space instead of an equals
sign

* Use config dir as current dir in psalm and psalm-refactor, as with psalter and psalm-language-server

* Remove redundant duplicated code

* Refactor: move calls to \Psalm\Config::setComposerClassLoader inside initialiseConfig

* PHPCS fix

* Extract function get_path_to_config from command scripts

* Refactor - extract functions from \Psalm\Config::loadFromXML

* Refactor - reduce verbosity of config loading code

* Allow running e2e tests on windows

* Fix testCompactReport on Windows

* convert line endings to make testCompactReport pass on Windows
2019-07-07 08:55:53 -04:00
..
Config Work in progress - resolve directories from config file location (#1904) 2019-07-06 12:21:39 -04:00
EndToEnd Allow resolving directories from config file location (continued) (#1910) 2019-07-07 08:55:53 -04:00
FileManipulation Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
FileUpdates Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
fixtures Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
Internal/Provider Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
LanguageServer Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
Loop Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
Progress Progress bar (#1709) 2019-05-30 10:30:41 -04:00
Template Allow closures to contain templated @var docblocks 2019-07-06 00:18:53 -04:00
Traits Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
AnnotationTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ArgTest.php Fix test array spacing 2019-06-16 09:42:34 -04:00
ArrayAccessTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ArrayAssignmentTest.php Fix test array spacing 2019-06-16 09:42:34 -04:00
AssertTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
AssignmentTest.php Improve type coverage in both good and bad ways 2019-03-25 22:30:40 -04:00
BadFormatTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
BinaryOperationTest.php Fully qualify constants and function calls (#1849) 2019-06-26 16:52:29 -04:00
CallableTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ClassLoadOrderTest.php Fix bad signature in ClassLoadOrderTest 2019-05-23 12:54:23 -04:00
ClassScopeTest.php More provider typing 2019-03-02 08:43:19 -05:00
ClassStringTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ClassTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
CodebaseTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ComposerLockTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ConstantTest.php Fix #1791 - complain about missing class constants 2019-06-15 12:19:26 -04:00
DeprecatedAnnotationTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
DocumentationTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
EmptyTest.php Allow array access on @template T as array 2019-05-23 18:06:22 -04:00
EnumTest.php Add separate issue for undefined classes in docblocks 2019-05-15 18:41:26 -04:00
ErrorBaselineTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
FileDiffTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
FileReferenceTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ForbiddenCodeTest.php Case-insensitive checks for var_dump and shell_exec 2019-04-13 12:35:49 -04:00
FunctionCallTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
IncludeTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
InterfaceTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
InternalAnnotationTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
IsAbsolutePathTest.php Namespace autoloaded functions (#1724) 2019-06-02 11:23:25 -04:00
IssetTest.php Fix #1737 properly 2019-06-04 14:08:49 -04:00
IssueSuppressionTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
JsonOutputTest.php Fully qualify constants and function calls (#1849) 2019-06-26 16:52:29 -04:00
ListTest.php Fully qualify constants and function calls (#1849) 2019-06-26 16:52:29 -04:00
MagicMethodAnnotationTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
MagicPropertyTest.php Fix #1869 - don’t memoize magic properties after set 2019-07-06 00:00:17 -04:00
MethodCallTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
MethodMutationTest.php Add some formatting 2019-03-23 14:27:54 -04:00
MethodSignatureTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
NamespaceTest.php More provider typing 2019-03-02 08:43:19 -05:00
Php40Test.php More provider typing 2019-03-02 08:43:19 -05:00
Php55Test.php More provider typing 2019-03-02 08:43:19 -05:00
Php56Test.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
Php70Test.php Add some formatting 2019-03-23 14:27:54 -04:00
Php71Test.php Add some formatting 2019-03-23 14:27:54 -04:00
ProjectCheckerTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
PropertyTypeTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
PsalmInternalAnnotationTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
PsalmPluginTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
RedundantConditionTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ReferenceConstraintTest.php Don’t change value of $this by reference 2019-03-03 20:16:11 -05:00
ReportOutputTest.php Allow resolving directories from config file location (continued) (#1910) 2019-07-07 08:55:53 -04:00
ReturnTypeTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ScopeTest.php Fully qualify constants and function calls (#1849) 2019-06-26 16:52:29 -04:00
StubTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
SwitchTypeTest.php Fully qualify constants and function calls (#1849) 2019-06-26 16:52:29 -04:00
TestCase.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
TestConfig.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ThrowsAnnotationTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ThrowsInGlobalScopeTest.php Bump to PHP 7.1 2019-05-16 18:36:36 -04:00
ToStringTest.php Fix #1704 - improve type coercion complaints 2019-05-29 14:22:15 -04:00
TraitTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
TryCatchTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
TypeAlgebraTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
TypeAnnotationTest.php Add some formatting 2019-03-23 14:27:54 -04:00
TypeCombinationTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
TypeParseTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
TypeReconciliationTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
TypeTest.php Fully qualify constants and function calls (#1849) 2019-06-26 16:52:29 -04:00
UnusedCodeTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
UnusedVariableTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
ValueTest.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
VariadicTest.php Bump to PHP 7.1 2019-05-16 18:36:36 -04:00