Allow users to preview what would be done by entering a test mode.
Test mode is disabled by default, but can be enabled adding flag -t or --test as the first executable's argument. It can be also enabled by setting the first argument of Cleaner::__construct( boolean ) to true.
Implementation summary:
add $testMode parameter to the Cleaner::__construct( boolean ) signature
force -t | --test to be the first argument of executable, but keep BC
Allow users to preview what would be done by entering a test mode.
Test mode is disabled by default, but can be enabled adding flag
-t
or--test
as the first executable's argument. It can be also enabled by setting the first argument ofCleaner::__construct( boolean )
totrue
.Implementation summary:
$testMode
parameter to theCleaner::__construct( boolean )
signature-t | --test
to be the first argument of executable, but keep BC