PHPCSStandards / PHPCSUtils

A suite of utility functions for use with PHP_CodeSniffer
https://phpcsutils.com/
GNU Lesser General Public License v3.0
53 stars 7 forks source link

UtilityMethodTestCase: new `parseFile()` method #591

Closed jrfnl closed 3 months ago

jrfnl commented 4 months ago

This abstracts the parsing of a file out from the setUpTestFile() method, without changing the functionality.

Having the parsing of a file as a separate method allows for tests to parse a secondary test case file for use in a test.

As the new method doesn't create any functional changes, it is already covered by existing tests.

jrfnl commented 4 months ago

Rebased without changes. Setting to draft as this PR depends on #550, which has to be merged first.

jrfnl commented 3 months ago

Rebased without changes. Marking as ready as #550 has been merged now. Merging once the build passes.