TestCase: introduce new configShowToPathsArray() method
... as a helper to allow for comparing expected and actual registered paths from --config-show.
RegisterExternalStandardsTest: add test registering one standard with multiple rulesets
As the behaviour shouldn't be different between Composer local/global, the test is only run against one of these (local).
The test is, however, run against multiple PHPCS versions to ensure the path to the standard as registered allows for picking up all expected rulesets in all supported PHPCS versions.
Includes adding a fake standard with multiple rulesets as a fixture for this test.
RegisterExternalStandardsTest: add test registering standard with ruleset in nested dir
As the behaviour shouldn't be different between Composer local/global, the test is only run against one of these (global).
The test is run against one random PHPCS version as with the other tests in place, sufficient PHPCS versions are being tested.
Even though this means there is only one test case, I've elected to still use a data provider to ensure that failing tests will mention the PHPCS version in the test name, which should help with debugging.
Includes adding a fake standard as a fixture for this test.
Proposed Changes
TestCase: introduce new configShowToPathsArray() method
... as a helper to allow for comparing expected and actual registered paths from
--config-show
.RegisterExternalStandardsTest: add test registering one standard with multiple rulesets
Includes adding a fake standard with multiple rulesets as a fixture for this test.
RegisterExternalStandardsTest: add test registering standard with ruleset in nested dir
Includes adding a fake standard as a fixture for this test.
Related to #92