Added support for PHP 8, fixed and upgraded PHPUnit config.

- Added support for PHP 8
- Fixed the phpunit.xml configuration, removed the features test suite.
- Upgraded the PHPUnit configuration with “—migrate-configuration” as recommended by the PHPUnit 9 deprecation warning.
This commit is contained in:
Paul Truesdell, II 2021-03-18 12:42:26 -04:00
parent 921f1df2ad
commit 931673fd29
3 changed files with 1215 additions and 480 deletions

View File

@ -20,7 +20,7 @@
} }
}, },
"require": { "require": {
"php": "^7.2.5", "php": "^7.2.5|^8.0",
"illuminate/config": "^7.0|^8.0", "illuminate/config": "^7.0|^8.0",
"illuminate/support": "^7.0|^8.0", "illuminate/support": "^7.0|^8.0",
"illuminate/database": "^7.0|^8.0", "illuminate/database": "^7.0|^8.0",

1639
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,36 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false">
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" <coverage processUncoveredFiles="true">
backupGlobals="false" <include>
backupStaticAttributes="false" <directory suffix=".php">./src</directory>
bootstrap="vendor/autoload.php" </include>
colors="true" </coverage>
convertErrorsToExceptions="true" <testsuites>
convertNoticesToExceptions="true" <testsuite name="Unit">
convertWarningsToExceptions="true" <directory suffix="Test.php">./tests/Unit</directory>
processIsolation="false" </testsuite>
stopOnFailure="false"> </testsuites>
<testsuites> <php>
<testsuite name="Unit"> <server name="APP_ENV" value="testing"/>
<directory suffix="Test.php">./tests/Unit</directory> <server name="BCRYPT_ROUNDS" value="4"/>
</testsuite> <server name="CACHE_DRIVER" value="array"/>
<server name="MAIL_DRIVER" value="array"/>
<testsuite name="Feature"> <server name="QUEUE_CONNECTION" value="sync"/>
<directory suffix="Test.php">./tests/Feature</directory> <server name="SESSION_DRIVER" value="file"/>
</testsuite> <server name="DB_CONNECTION" value="testing"/>
</testsuites> </php>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<php>
<server name="APP_ENV" value="testing"/>
<server name="BCRYPT_ROUNDS" value="4"/>
<server name="CACHE_DRIVER" value="array"/>
<server name="MAIL_DRIVER" value="array"/>
<server name="QUEUE_CONNECTION" value="sync"/>
<server name="SESSION_DRIVER" value="file"/>
<server name="DB_CONNECTION" value="testing"/>
</php>
</phpunit> </phpunit>