Skip to content

Commit

Permalink
Merge pull request #13 from eXolnet/feature/laravel-10-support
Browse files Browse the repository at this point in the history
chore(deps): add Laravel 10 support
  • Loading branch information
xel1045 authored Feb 18, 2023
2 parents 57766eb + a46bf93 commit d89a58e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
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.0, 8.1, 8.2]
laravel: [9.*]
laravel: [9.*, 10.*]
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- php: 8.0
laravel: 10.*
include:
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*

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

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
],
"require": {
"php": "^8.0",
"laravel/framework": "^9.0"
"laravel/framework": "^9.0|^10.0"
},
"require-dev": {
"mockery/mockery": "^1.4",
"orchestra/testbench": "^7.0",
"orchestra/testbench": "^7.0|^8.0",
"phpunit/phpunit": "^9.3.3",
"squizlabs/php_codesniffer": "^3.6"
},
Expand Down
6 changes: 3 additions & 3 deletions tests/Integration/BustTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testAsset(): void
{
$asset = $this->bust->asset('example.css');

$this->assertMatchesRegularExpression('#http://localhost/example\.[0-9]+\.css#', $asset);
$this->assertMatchesRegularExpression('#/example\.[0-9]+\.css$#', $asset);
}

/**
Expand All @@ -44,7 +44,7 @@ public function testAssetWithQueryParameter(): void

$asset = $this->bust->asset('example.css');

$this->assertMatchesRegularExpression('#http://localhost/example\.css\?v=[0-9]+#', $asset);
$this->assertMatchesRegularExpression('#/example\.css\?v=[0-9]+$#', $asset);
}

/**
Expand All @@ -55,7 +55,7 @@ public function testAssetWithoutExtension(): void
{
$asset = $this->bust->asset('example');

$this->assertEquals('http://localhost/example', $asset);
$this->assertMatchesRegularExpression('#example$#', $asset);
}

/**
Expand Down

0 comments on commit d89a58e

Please sign in to comment.