Skip to content

Commit

Permalink
Added Laravel 11 Support (#43)
Browse files Browse the repository at this point in the history
* Added Laravel 11 Support

* Clean up
  • Loading branch information
nasrulhazim authored Apr 7, 2024
1 parent 24f17dd commit 4f8e3d9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 39 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ phpunit.xml
storage
vendor
.php_cs
.phpunit.result.cache
.phpunit.result.cache/
24 changes: 12 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@
"require": {
"php": "^8.0",
"dingo/blueprint": "^0.4.5",
"illuminate/routing": "^9.0|^10.0",
"illuminate/support": "^9.0|^10.0",
"illuminate/routing": "^9.0|^10.0|^11.0",
"illuminate/support": "^9.0|^10.0|^11.0",
"league/fractal": "^0.20"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "~3",
"illuminate/auth": "^9.0|^10.0",
"illuminate/cache": "^9.0|^10.0",
"illuminate/console": "^9.0|^10.0",
"illuminate/database": "^9.0|^10.0",
"illuminate/events": "^9.0|^10.0",
"illuminate/filesystem": "^9.0|^10.0",
"illuminate/log": "^9.0|^10.0",
"illuminate/pagination": "^9.0|^10.0",
"laravel/lumen-framework": "^9.0|^10.0",
"illuminate/auth": "^9.0|^10.0|^11.0",
"illuminate/cache": "^9.0|^10.0|^11.0",
"illuminate/console": "^9.0|^10.0|^11.0",
"illuminate/database": "^9.0|^10.0|^11.0",
"illuminate/events": "^9.0|^10.0|^11.0",
"illuminate/filesystem": "^9.0|^10.0|^11.0",
"illuminate/log": "^9.0|^10.0|^11.0",
"illuminate/pagination": "^9.0|^10.0|^11.0",
"laravel/lumen-framework": "^9.0|^10.0|^11.0",
"mockery/mockery": "~1.0",
"phpunit/phpunit": "^9.0",
"phpunit/phpunit": "^9.0|^10.0",
"squizlabs/php_codesniffer": "~2.0",
"php-open-source-saver/jwt-auth": "^1.4"
},
Expand Down
39 changes: 12 additions & 27 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,29 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
failOnRisky="true"
failOnWarning="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
verbose="true"
>
<testsuites>
<testsuite name="API Test Suite">
<directory suffix="Test.php">./tests</directory>
<exclude>./tests/Routing/Adapter/LumenTest.php</exclude>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" bootstrap="vendor/autoload.php" colors="true" failOnRisky="true" failOnWarning="true" processIsolation="false" stopOnError="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="API Test Suite">
<directory suffix="Test.php">./tests</directory>
<exclude>./tests/Routing/Adapter/LumenTest.php</exclude>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>

0 comments on commit 4f8e3d9

Please sign in to comment.