Skip to content

Commit

Permalink
Merge pull request #4 from diglabby/alies/laravel-11
Browse files Browse the repository at this point in the history
Support Laravel 11, update dependencies
  • Loading branch information
alies-dev authored Feb 27, 2024
2 parents 0073527 + d3250f1 commit e05f96a
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 33 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,18 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
php: [8.3, 8.2, 8.1, 8.0, 7.4]
laravel: [10.*, 9.*]
php: [8.3, 8.2, 8.1]
laravel: [11.*, 10.*]
dependency-version: [prefer-lowest]
os: [ubuntu-latest]
include:
- laravel: 11.*
testbench: 9.*
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
exclude:
- php: 8.0
laravel: 10.*
- php: 7.4
laravel: 10.*
- php: 7.4
laravel: 9.*
- php: 8.1
laravel: 11.*

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

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ composer.lock
vendor

.phpunit.result.cache
.phpunit.cache

.php-cs-fixer.cache
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"translation"
],
"require": {
"php": "^7.4 || ^8.0",
"illuminate/console": "^9.0 || ^10.0 || ^11.0",
"illuminate/support": "^9.0 || ^10.0 || ^11.0"
"php": "^8.1",
"illuminate/console": "^10.0 || ^11.0",
"illuminate/support": "^10.0 || ^11.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.50",
"orchestra/testbench": "^7.0 || ^8.0 || ^9.0",
"phpunit/phpunit": "^9.6 || ^10.5 || ^11.0",
"orchestra/testbench": "^8.0 || ^9.0",
"phpunit/phpunit": "^10.5 || ^11.0",
"vimeo/psalm": "^5.22"
},
"minimum-stability": "dev",
Expand Down
28 changes: 14 additions & 14 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
backupGlobals="false"
colors="true"
processIsolation="false"
stopOnFailure="false"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<testsuites>
<testsuite name="Main Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<source>
<include>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</include>
</source>
</phpunit>
9 changes: 5 additions & 4 deletions tests/Commands/FindMissingTranslationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@

use Diglabby\FindMissingTranslations\Tests\TestCase;
use Illuminate\Support\Facades\Artisan;
use PHPUnit\Framework\Attributes\Test;

final class FindMissingTranslationsTest extends TestCase
{
/** @test */
public function it_does_not_report_about_synchronized_files()
#[Test]
public function it_does_not_report_about_synchronized_files(): void
{
$this->withoutMockingConsoleOutput();

Expand All @@ -22,8 +23,8 @@ public function it_does_not_report_about_synchronized_files()
$this->assertSame('Successfully compared all languages.', trim($output));
}

/** @test */
public function it_reports_about_missing_translation_keys()
#[Test]
public function it_reports_about_missing_translation_keys(): void
{
$this->withoutMockingConsoleOutput();

Expand Down

0 comments on commit e05f96a

Please sign in to comment.