Skip to content

Commit

Permalink
PHP 8.2 Support (#15)
Browse files Browse the repository at this point in the history
* add support for PHP V8.1 and remove older versions

* fix PHPUnit configuration issue and ignore its cache

* build: change PHP version

---------

Co-authored-by: muhamadhhassan <[email protected]>
  • Loading branch information
muhamadhhassan and muhamadhhassan authored Mar 16, 2023
1 parent 2014a64 commit d461218
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 34 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,5 @@ modules.xml

.DS_Store
src/.DS_Store
.editorconfig
.editorconfig
.phpunit.result.cache
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
}
],
"require": {
"php": "^7.4|^8.0",
"php": "^8.1|8.2",
"ext-dom": "*",
"ext-json": "*",
"ext-simplexml": "*",
"guzzlehttp/guzzle": "^7.4",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0"
"guzzlehttp/guzzle": "^7.5",
"illuminate/support": "^9.0|^10"
},
"require-dev": {
"orchestra/testbench": "^4.6.0",
"phpunit/phpunit": "^8.0"
"orchestra/testbench": "^8.0.8",
"phpunit/phpunit": "^10.0"
},
"autoload": {
"psr-4": {
Expand Down
38 changes: 10 additions & 28 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,29 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<php>
<env name="APP_NAME" value="Resala" />
<env name="APP_ENV" value="testing" />
</php>
</phpunit>

0 comments on commit d461218

Please sign in to comment.