| 1 |
# Running the PHPUnit tests |
| 2 |
|
| 3 |
These tests cover some of the core functionality of the MLSImport plugin. |
| 4 |
|
| 5 |
## Requirements |
| 6 |
|
| 7 |
* PHP 7.4 or later |
| 8 |
* [](https://getcomposer.org/Composer](https://getcomposer.org/](https://getcomposer.org/) installed globally |
| 9 |
* `phpunit` available under `vendor/bin/phpunit`. You can install it via Composer: |
| 10 |
|
| 11 |
```bash |
| 12 |
composer require --dev phpunit/phpunit ^9 |
| 13 |
``` |
| 14 |
|
| 15 |
## Executing the tests |
| 16 |
|
| 17 |
1. Install development dependencies (including PHPUnit) if you haven't already: |
| 18 |
|
| 19 |
```bash |
| 20 |
composer install |
| 21 |
``` |
| 22 |
|
| 23 |
2. Run PHPUnit from the project root: |
| 24 |
|
| 25 |
```bash |
| 26 |
vendor/bin/phpunit |
| 27 |
``` |
| 28 |
|
| 29 |
The configuration file `phpunit.xml` will bootstrap the test environment and run the test suite located in the `tests/` directory. |
| 30 |
|