Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 486 Bytes

php-testing.md

File metadata and controls

13 lines (9 loc) · 486 Bytes

Testing for PHP code compatibility

composer global require phpcompatibility/php-compatibility

Run the compat test - adjust your global composer vendor dir if required, this works on macOS

phpcs --runtime-set installed_paths ~/.composer/vendor/phpcompatibility/php-compatibility --standard=PHPCompatibility --runtime-set testVersion 7.2 --extensions=php .