Upgrade PHPUnit to v9

This commit is contained in:
PJ Dietz 2020-08-08 10:46:07 -04:00
parent e320e7e6c3
commit fbd1c10ebe
4 changed files with 889 additions and 452 deletions

View File

@ -18,11 +18,17 @@
"psr/http-server-middleware": "~1.0" "psr/http-server-middleware": "~1.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^8" "phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^9"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"WellRESTed\\": "src/" "WellRESTed\\": "src/"
} }
},
"autoload-dev": {
"psr-4": {
"WellRESTed\\Test\\": "test/src/"
}
} }
} }

1274
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,28 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="test/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
colors="true" colors="true"
convertErrorsToExceptions="true" convertErrorsToExceptions="true"
convertNoticesToExceptions="true" convertNoticesToExceptions="true"
convertWarningsToExceptions="true" convertWarningsToExceptions="true"
processIsolation="false" processIsolation="false"
stopOnFailure="false" stopOnFailure="false"
verbose="true" verbose="true"
> >
<testsuites> <coverage>
<testsuite name="unit"> <include>
<directory>./test/tests/unit</directory> <directory suffix=".php">./src</directory>
</testsuite> </include>
<testsuite name="integration"> <report>
<directory>./test/tests/integration</directory> <html outputDirectory="./public/coverage"/>
</testsuite> </report>
</testsuites> </coverage>
<filter> <testsuites>
<whitelist> <testsuite name="unit">
<directory suffix=".php">./src</directory> <directory>./test/tests/unit</directory>
</whitelist> </testsuite>
</filter> <testsuite name="integration">
<logging> <directory>./test/tests/integration</directory>
<log type="coverage-html" target="./public/coverage" /> </testsuite>
</logging> </testsuites>
<logging/>
</phpunit> </phpunit>

View File

@ -1,6 +0,0 @@
<?php
error_reporting(E_ALL);
$loader = require __DIR__ . '/../vendor/autoload.php';
$loader->addPsr4('WellRESTed\\Test\\', __DIR__ . '/src');