Skip to content

Commit 4015141

Browse files
authored
Merge pull request #17 from eXolnet/feature/laravel11-support
build(deps): add Laravel 11 support
2 parents 34ebbda + ccddb6d commit 4015141

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@ jobs:
1010
fail-fast: true
1111
matrix:
1212
php: [8.1, 8.2]
13-
laravel: [10.*]
13+
laravel: [10.*, 11.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
15+
exclude:
16+
- php: 8.1
17+
laravel: 11.*
1518
include:
1619
- laravel: 10.*
1720
testbench: 8.*
21+
- laravel: 11.*
22+
testbench: 9.*
1823

1924
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2025

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
],
1818
"require": {
1919
"php": "^8.1",
20-
"illuminate/console": "^10.0",
21-
"illuminate/support": "^10.0"
20+
"illuminate/console": "^10.0|^11.0",
21+
"illuminate/support": "^10.0|^11.0"
2222
},
2323
"require-dev": {
2424
"mockery/mockery": "^1.4",
25-
"orchestra/testbench": "^8.0",
26-
"phpunit/phpunit": "^9.3.3",
25+
"orchestra/testbench": "^8.0|^9.0",
26+
"phpunit/phpunit": "^10.5",
2727
"squizlabs/php_codesniffer": "^3.6"
2828
},
2929
"autoload": {

phpunit.xml.dist

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
55
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false">
6+
>
127
<testsuites>
138
<testsuite name="Test Suite">
149
<directory>tests</directory>
1510
</testsuite>
1611
</testsuites>
17-
<filter>
18-
<whitelist>
12+
<source>
13+
<include>
1914
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
15+
</include>
16+
</source>
2217
</phpunit>

tests/Unit/Console/DbUpgradeCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Mockery as m;
88
use Symfony\Component\Process\ExecutableFinder;
99

10-
class DbUpgradeCommandTest extends UnitTest
10+
class DbUpgradeCommandTest extends TestCase
1111
{
1212
/**
1313
* @var \Illuminate\Filesystem\Filesystem|\Mockery\LegacyMockInterface|\Mockery\MockInterface

tests/Unit/UnitTest.php renamed to tests/Unit/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace Exolnet\DbUpgrade\Tests\Unit;
44

55
use Mockery;
6-
use PHPUnit\Framework\TestCase;
6+
use PHPUnit\Framework\TestCase as BaseTestCase;
77

8-
abstract class UnitTest extends TestCase
8+
abstract class TestCase extends BaseTestCase
99
{
1010
public function tearDown(): void
1111
{

0 commit comments

Comments
 (0)