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

TestUtils/UtilityMethodTestCase: improve setup/teardown tests #611

Closed jrfnl closed 3 months ago

jrfnl commented 3 months ago

TestUtils/UtilityMethodTestCase: split a test class

Split the UtilityMethodTestCaseTest in two separate test classes, one for the setup, one for the teardown.

TestUtils/SetUpTestFileTest: improve the test

TestUtils/ResetTestFileTest: improve the test

This adjusts the test to not only test that the properties have the correct value after the reset, but also makes sure that the values were changed before the reset, so we can be sure that the reset actually worked and not just verifies the original values of the properties.