Modified version of the original SapphireTest to run tests with phpunit v. 9
This module add copy of the original silverstripe SapphireTest with modifications to be able to run tests with phpunit version 9.1.1.
Add some installation instructions here, having a 1 line composer copy and paste is useful.
Here is a composer command to create a new module project. Ensure you read the
'publishing a module' guide
and update your module's composer.json to designate your code as a SilverStripe module.
composer require botzkobg/silverstripe-phpunit9
The first thing to do is to update the version fo the phpunit in your composer.json
file. Replace the version there with ^9.0.0
.
In your tests you need to extend SapphireTestPhpUnit9
instead of SapphireTest
and FunctionalTestPhpUnit9
instead of FunctionalTest
.
I'm using the following env with this module:
Bugs are tracked in the issues section of this repository. Before submitting an issue please read over
existing issues to ensure yours is unique.
If the issue does look like a new bug:
Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem