Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 977 Bytes

File metadata and controls

30 lines (18 loc) · 977 Bytes

Testing

Required dev dependencies

This package uses PHPUnit 13 for its test suite. composer.json already lists:

  • phpunit/phpunit:^13.1

If PHPUnit is missing from a clone, install it with:

composer require --dev phpunit/phpunit:^13.1

Running tests

Install dependencies for this repository, then run PHPUnit from this repository root:

composer install
vendor/bin/phpunit

On Windows, use vendor\bin\phpunit.bat.

Notes

The tests create temporary files and directories under PHP's system temp directory and remove them during teardown. Read-only file permission tests are skipped on Windows because chmod-style readability and writability checks are not enforced consistently there.

PHP configuration files execute trusted PHP code when they are decoded or read. The suite covers validation, encoding, decoding, trusted PHP files returning arrays, scalar return rejection, invalid PHP source, read failures, and write failures.