Skip to content

Commit

Permalink
Support L10
Browse files Browse the repository at this point in the history
  • Loading branch information
mtvs committed Mar 2, 2023
1 parent 38d2818 commit 41dc9f5
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 31 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ jobs:

strategy:
matrix:
php: [7.3, 7.4, 8.0, 8.1]
illuminate: [^8.0, ^9.0]
php: [7.3, 7.4, 8.0, 8.1, 8.2]
illuminate: [^8.0, ^9.0, ^10.0]
exclude:
- php: 7.3
illuminate: ^9.0
- php: 7.4
illuminate: ^9.0
- php: 7.3
illuminate: ^10.0
- php: 7.4
illuminate: ^10.0
- php: 8.0
illuminate: ^10.0


name: PHP ${{ matrix.php }} & Illuminate ${{ matrix.illuminate }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
vendor
.idea
composer.lock
.phpunit.cache/
.phpunit.result.cache


8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
}
],
"require": {
"illuminate/database": "^8.0|^9.0",
"vinkla/hashids": "^9.0|^10.0"
"illuminate/database": "^8.0|^9.0|^10.0",
"vinkla/hashids": "^9.0|^10.0|^11.0"
},
"require-dev": {
"orchestra/testbench": "^6.0|^7.0",
"phpunit/phpunit": "^8.4|^9.0",
"orchestra/testbench": "^6.0|^7.0|^8.0",
"phpunit/phpunit": "^8.4|^9.0|^10.0",
"laravel/legacy-factories": "^1.0"
},
"autoload": {
Expand Down
43 changes: 19 additions & 24 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix=".php">tests/</directory>
<exclude>tests/database/factories/</exclude>
</testsuite>
</testsuites>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
</phpunit>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix=".php">tests/</directory>
<exclude>tests/database/</exclude>
<exclude>tests/Models/</exclude>
<exclude>tests/config/</exclude>
<exclude>tests/TestCase.php</exclude>
</testsuite>
</testsuites>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
</phpunit>
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Orchestra\Testbench\TestCase as Orchestra;
use Vinkla\Hashids\HashidsServiceProvider;

abstract class TestCase extends Orchestra
class TestCase extends Orchestra
{
protected function setUp(): void
{
Expand Down

0 comments on commit 41dc9f5

Please sign in to comment.