Skip to content
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
44 changes: 19 additions & 25 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,59 +9,53 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ "8.0", "8.1", "8.2", "8.3" ]
laravel: [ "6.0", "7.0", "8.0", "9.0", "10.0", "11.0" ]
doctrine: [ "2.0", "3.0" ]
php: [ "8.0", "8.1", "8.2", "8.3", "8.4" ]
laravel: [ "6.0", "7.0", "8.0", "9.0", "10.0", "11.0", "12.0" ]
exclude:
- laravel: "6.0"
doctrine: "3.0"

- laravel: "6.0"
php: "8.1"

- laravel: "6.0"
php: "8.2"

- laravel: "6.0"
php: "8.3"

- laravel: "7.0"
doctrine: "3.0"
- laravel: "6.0"
php: "8.4"

- laravel: "7.0"
php: "8.1"

- laravel: "7.0"
php: "8.2"

- laravel: "7.0"
php: "8.3"

- laravel: "8.0"
doctrine: "2.0"
- laravel: "7.0"
php: "8.4"

- laravel: "8.0"
php: "8.2"

- laravel: "8.0"
php: "8.3"
- laravel: "8.0"
php: "8.4"

- laravel: "10.0"
doctrine: "2.0"
- laravel: "9.0"
php: "8.3"
- laravel: "9.0"
php: "8.4"

- laravel: "10.0"
php: "8.0"

- laravel: "11.0"
doctrine: "2.0"

- laravel: "11.0"
php: "8.0"

- laravel: "11.0"
php: "8.1"

name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}, Doctrine ${{ matrix.doctrine }}
- laravel: "12.0"
php: "8.0"
- laravel: "12.0"
php: "8.1"

name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}

services:
mysql:
Expand All @@ -88,7 +82,7 @@ jobs:
coverage: xdebug

- name: Install dependencies
run: composer require --dev laravel/framework:^${{ matrix.laravel }} doctrine/dbal:^${{ matrix.doctrine }}
run: composer require --dev laravel/framework:^${{ matrix.laravel }}

- name: Execute tests
run: sudo vendor/bin/phpunit
Expand Down
18 changes: 10 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,29 @@
],
"require": {
"php": "^8.0",
"doctrine/dbal": "^2.6 || ^3.0",
"dragon-code/laravel-cache": "^3.3",
"dragon-code/laravel-cache": "^3.3 || ^4.0",
"dragon-code/simple-dto": "^2.3",
"dragon-code/support": "^6.0",
"fig/http-message-util": "^1.1",
"illuminate/console": ">=6.0 <12.0",
"illuminate/database": ">=6.0 <12.0",
"illuminate/support": ">=6.0 <12.0",
"illuminate/console": ">=6.0 <13.0",
"illuminate/database": ">=6.0 <13.0",
"illuminate/support": ">=6.0 <13.0",
"lmc/http-constants": "^1.2",
"nesbot/carbon": "^1.20 || ^2.0 || ^3.0",
"psr/http-message": "^1.0.1 || ^2.0"
},
"require-dev": {
"ext-json": "*",
"mockery/mockery": "^1.3.1",
"orchestra/testbench": ">=4.0 <10.0",
"phpunit/phpunit": "^9.6 || ^10.0"
"orchestra/testbench": ">=4.0 <11.0",
"phpunit/phpunit": "^9.6 || ^10.0 || ^11.0 || ^12.0"
},
"conflict": {
"andrey-helldar/last-modified": "*"
},
"suggest": {
"doctrine/dbal": "It is necessary to install when working with Laravel from 6 to 10"
},
"minimum-stability": "stable",
"prefer-stable": true,
"autoload": {
Expand Down Expand Up @@ -87,4 +89,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion config/last_modified.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
13 changes: 2 additions & 11 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
~
~ @author Andrey Helldar <helldar@ai-rus.com>
~
~ @copyright 2024 Andrey Helldar
~ @copyright 2025 Andrey Helldar
~
~ @license MIT
~
Expand All @@ -30,16 +30,6 @@
stopOnFailure="false"
verbose="true"
>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/logs/coverage"/>
<text outputFile="build/logs/coverage.txt"/>
</report>
</coverage>
<php>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="APP_URL" value="http://localhost"/>
Expand All @@ -49,6 +39,7 @@
<env name="REDIS_HOST" value="127.0.0.1"/>
<env name="REDIS_PORT" value="6379"/>
<env name="CACHE_DRIVER" value="redis"/>
<env name="CACHE_STORE" value="redis"/>
</php>
<testsuites>
<testsuite name="Test Suite">
Expand Down
2 changes: 1 addition & 1 deletion src/Concerns/Cacheable.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Concerns/Urlable.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Constants/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Middlewares/CheckLastModified.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Services/LastModified.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Processors/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Processors/ToDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Processors/ToUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Concerns/Asserts.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Concerns/Fakeable.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Concerns/Requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Concerns/Urlable.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/WhenDisabled/Middlewares/CheckLastModifiedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/WhenDisabled/Resources/ItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/WhenDisabled/Services/CheckerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/WhenDisabled/Services/LastModified/ToDeleteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
2 changes: 1 addition & 1 deletion tests/WhenDisabled/Services/LastModified/ToUpdateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @author Andrey Helldar <helldar@ai-rus.com>
*
* @copyright 2024 Andrey Helldar
* @copyright 2025 Andrey Helldar
*
* @license MIT
*
Expand Down
Loading