Skip to content

Commit

Permalink
Merge pull request #328 from TheDragonCode/patch/2024-03-31/18-16
Browse files Browse the repository at this point in the history
Added support for Laravel 11 and fixed initialization issue
  • Loading branch information
andrey-helldar committed Mar 31, 2024
2 parents b6e1b9a + 9c25389 commit ecd8056
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
coverage: none
coverage: xdebug
env:
COMPOSER_TOKEN: ${{ secrets.COMPOSER_TOKEN }}

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
"require": {
"php": "^8.1",
"ext-json": "*",
"laravel-lang/publisher": "^14.6"
"laravel-lang/publisher": "^14.6 || ^15.0 || ^16.0"
},
"require-dev": {
"laravel-lang/status-generator": "^1.18",
"phpunit/phpunit": "^9.6",
"symfony/var-dumper": "^6.2"
"laravel-lang/status-generator": "^1.18 || ^2.0",
"phpunit/phpunit": "^10.0",
"symfony/var-dumper": "^6.2 || ^7.0"
},
"minimum-stability": "stable",
"prefer-stable": true,
Expand All @@ -67,7 +67,7 @@
"extra": {
"laravel": {
"providers": [
"YourNamespace\\Translations\\ServiceProvider"
"DragonCode\\TranslationSet\\ServiceProvider"
]
}
}
Expand Down
33 changes: 13 additions & 20 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,36 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
cacheResult="false"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
verbose="true"
cacheDirectory=".phpunit.cache"
>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
<coverage>
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/logs/coverage"/>
<text outputFile="build/logs/coverage.txt"/>
<clover outputFile="build/logs/clover.xml" />
<html outputDirectory="build/logs/coverage" />
<text outputFile="build/logs/coverage.txt" />
</report>
</coverage>
<php>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF" />
</php>
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
<directory>./tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>./src</directory>
</include>
</source>
</phpunit>

0 comments on commit ecd8056

Please sign in to comment.