wp-cli / wp-config-transformer

Programmatically edit a wp-config.php file
MIT License
80 stars 25 forks source link

Add read-only option for WPConfigTransformer #54

Closed pwtyler closed 2 months ago

pwtyler commented 2 months ago

Provides the option to skip checking that wp-config needs to be writable. Allows commands like wp config has to run on a read-only file system.

First part of addressing https://github.com/wp-cli/config-command/issues/184

WCUS Contributor Day 5985

Note, $this->expectNotToPerformAssertions(); is not supported by the version of PHPUnit used in our 5.6 tests, so using the @doesNotPerformAssertions annotation instead.