This module add copy of the original silverstripe SapphireTest with modifications to be able to run tests with phpunit version 9.1.1.
- SilverStripe 4.5.0
- PHP: >7.3
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:
- PHP: 7.4.2
- Silverstripe framework: 4.5.0
- phpunit: 9.1.1
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:
- Create a new issue
- Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots and screencasts can help here.
- Describe your environment as detailed as possible: SilverStripe version, Browser, PHP version, Operating System, any installed SilverStripe modules.
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.