Documentation

ConfigDouble.php

Config class for use in the tests.

The Config class contains a number of static properties. As the value of these static properties will be retained between instantiations of the class, config values set in one test can influence the results for another test, which makes tests unstable.

This class is a "double" of the Config class which prevents this from happening. In most cases, tests should be using this class instead of the "normal" Config, with the exception of select tests for the Config class itself.

Tags
author

Juliette Reinders Folmer phpcs_nospam@adviesenzo.nl

copyright

2024 Juliette Reinders Folmer. All rights reserved.

license

https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence

Table of Contents

Classes

ConfigDouble
Stores the configuration used to run PHPCS and PHPCBF.

        
On this page

Search results