Adjusted down to PHPUnit 8 for PHP 7.2

This commit is contained in:
Andrey Savchenko committed 2022-06-09 15:03:29 +03:00
1 parent 7399146214
commit 752271b258
3 files changed
+16 -17

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
php-version: '7.2' php-version: '7.2'
tools: phpunit:9,psalm tools: phpunit:8,psalm
- name: Setup problem matchers for PHPUnit - name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
+1 -1
View File
@@ -41,7 +41,7 @@ API requests need to be authenticated as admin for performance data to be sent.
## Tests ## Tests
Tests require [Brain Monkey](https://github.com/Brain-WP/BrainMonkey) (included in dependencies) and PHPUnit 9 (not included). Tests require [Brain Monkey](https://github.com/Brain-WP/BrainMonkey) (included in dependencies) and PHPUnit 8 (not included).
```bash ```bash
phpunit phpunit
+14 -15
View File
@@ -1,16 +1,15 @@
<?xml version="1.0"?> <phpunit bootstrap="vendor/autoload.php">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> <testsuites>
<coverage processUncoveredFiles="true"> <testsuite name="Laps">
<include> <directory>tests</directory>
<directory suffix=".php">src</directory> </testsuite>
</include> </testsuites>
<exclude> <filter>
<directory suffix=".php">src/mustache/cache</directory> <whitelist processUncoveredFilesFromWhitelist="true">
</exclude> <directory suffix=".php">src</directory>
</coverage> <exclude>
<testsuites> <directory suffix=".php">src/mustache/cache</directory>
<testsuite name="Laps"> </exclude>
<directory>tests</directory> </whitelist>
</testsuite> </filter>
</testsuites>
</phpunit> </phpunit>