Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): add Laravel 11 support #17

Merged
merged 5 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ jobs:
fail-fast: true
matrix:
php: [8.1, 8.2]
laravel: [10.*]
laravel: [10.*, 11.*]
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- php: 8.1
laravel: 11.*
include:
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*

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

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
],
"require": {
"php": "^8.1",
"illuminate/console": "^10.0",
"illuminate/support": "^10.0"
"illuminate/console": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0"
},
"require-dev": {
"mockery/mockery": "^1.4",
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^9.3.3",
"orchestra/testbench": "^8.0|^9.0",
"phpunit/phpunit": "^10.5",
"squizlabs/php_codesniffer": "^3.6"
},
"autoload": {
Expand Down
21 changes: 8 additions & 13 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
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>
<source>
<include>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</include>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion tests/Unit/Console/DbUpgradeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Mockery as m;
use Symfony\Component\Process\ExecutableFinder;

class DbUpgradeCommandTest extends UnitTest
class DbUpgradeCommandTest extends TestCase
{
/**
* @var \Illuminate\Filesystem\Filesystem|\Mockery\LegacyMockInterface|\Mockery\MockInterface
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/UnitTest.php → tests/Unit/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Exolnet\DbUpgrade\Tests\Unit;

use Mockery;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\TestCase as BaseTestCase;

abstract class UnitTest extends TestCase
abstract class TestCase extends BaseTestCase
{
public function tearDown(): void
{
Expand Down