Skip to content

Commit c0a3899

Browse files
committed
Laravel 10 support
1 parent 5f3a08d commit c0a3899

File tree

5 files changed

+20
-21
lines changed

5 files changed

+20
-21
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
php: [8.0, 8.1]
11+
php: [8.1, 8.2]
1212
stability: [prefer-lowest, prefer-stable]
1313

1414
name: PHP ${{ matrix.php }} / ${{ matrix.stability }}
@@ -38,7 +38,7 @@ jobs:
3838
command: composer update --prefer-dist --${{ matrix.stability }} --no-interaction --no-progress --ansi
3939

4040
- name: Run tests
41-
run: vendor/bin/phpunit --verbose --colors=always --coverage-clover ./build/logs/clover.xml
41+
run: vendor/bin/phpunit --colors=always --coverage-clover ./build/logs/clover.xml
4242

4343
- name: Code coverage
4444
uses: codecov/codecov-action@v1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/.idea
2+
/.phpunit.cache
23
/.vscode
34
/vendor
45
.DS_Store

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
[<img src="https://user-images.githubusercontent.com/1286821/181085373-12eee197-187a-4438-90fe-571ac6d68900.png" alt="Buy me a coffee" width="200" />](https://buymeacoffee.com/dmitry.ivanov)
66

77
[![StyleCI](https://github.styleci.io/repos/68023936/shield?branch=master&style=flat)](https://github.styleci.io/repos/68023936?branch=master)
8-
[![Build Status](https://img.shields.io/github/workflow/status/dmitry-ivanov/laravel-db-profiler/tests/master)](https://github.com/dmitry-ivanov/laravel-db-profiler/actions?query=workflow%3Atests+branch%3Amaster)
9-
[![Coverage Status](https://img.shields.io/codecov/c/github/dmitry-ivanov/laravel-db-profiler/master)](https://app.codecov.io/gh/dmitry-ivanov/laravel-db-profiler/branch/master)
8+
[![Build Status](https://img.shields.io/github/actions/workflow/status/dmitry-ivanov/laravel-db-profiler/tests.yml?branch=master)](https://github.com/dmitry-ivanov/laravel-db-profiler/actions?query=workflow%3Atests+branch%3Amaster)
9+
[![Coverage Status](https://img.shields.io/codecov/c/github/dmitry-ivanov/laravel-db-profiler/master)](https://app.codecov.io/gh/dmitry-ivanov/laravel-db-profiler/tree/master)
1010

1111
![Packagist Version](https://img.shields.io/packagist/v/illuminated/db-profiler)
1212
![Packagist Stars](https://img.shields.io/packagist/stars/illuminated/db-profiler)
@@ -19,6 +19,8 @@ Database Profiler for Laravel Web and Console Applications.
1919
2020
| Laravel | Database Profiler |
2121
|---------|------------------------------------------------------------------------|
22+
| 11.x | _[Support](https://buymeacoffee.com/dmitry.ivanov)_|
23+
| 10.x | [10.x](https://github.com/dmitry-ivanov/laravel-db-profiler/tree/10.x) |
2224
| 9.x | [9.x](https://github.com/dmitry-ivanov/laravel-db-profiler/tree/9.x) |
2325
| 8.x | [8.x](https://github.com/dmitry-ivanov/laravel-db-profiler/tree/8.x) |
2426
| 7.x | [7.x](https://github.com/dmitry-ivanov/laravel-db-profiler/tree/7.x) |
@@ -65,5 +67,4 @@ If you want to force profiling for non-local environments - specify it explicitl
6567
6668
Laravel Database Profiler is open-sourced software licensed under the [MIT license](LICENSE.md).
6769
68-
[<img src="https://user-images.githubusercontent.com/1286821/43086829-ff7c006e-8ea6-11e8-8b03-ecf97ca95b2e.png" alt="Support on Patreon" width="125" />](https://patreon.com/dmitryivanov)&nbsp;
6970
[<img src="https://user-images.githubusercontent.com/1286821/181085373-12eee197-187a-4438-90fe-571ac6d68900.png" alt="Buy me a coffee" width="200" />](https://buymeacoffee.com/dmitry.ivanov)&nbsp;

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
"email": "[email protected]"
1313
}],
1414
"require": {
15-
"php": "^8.0.2",
16-
"illuminate/database": "^9.0",
17-
"illuminate/support": "^9.0"
15+
"php": "^8.1",
16+
"illuminate/database": "^10.0",
17+
"illuminate/support": "^10.0"
1818
},
1919
"require-dev": {
20-
"phpunit/phpunit": "^9.5.10",
21-
"mockery/mockery": "^1.4.4",
22-
"orchestra/testbench": "^7.0",
23-
"illuminated/testing-tools": "^9.0",
24-
"illuminated/helper-functions": "^9.0"
20+
"phpunit/phpunit": "^10.5",
21+
"mockery/mockery": "^1.5.1",
22+
"orchestra/testbench": "^8.0",
23+
"illuminated/testing-tools": "^10.0",
24+
"illuminated/helper-functions": "^10.0"
2525
},
2626
"autoload": {
2727
"psr-4": {

phpunit.xml.dist

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,28 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
33
backupGlobals="false"
4-
backupStaticAttributes="false"
4+
backupStaticProperties="false"
55
beStrictAboutTestsThatDoNotTestAnything="false"
66
beStrictAboutOutputDuringTests="true"
77
bootstrap="vendor/autoload.php"
8+
cacheDirectory=".phpunit.cache"
89
colors="true"
9-
convertErrorsToExceptions="true"
10-
convertNoticesToExceptions="true"
11-
convertWarningsToExceptions="true"
1210
processIsolation="false"
1311
stopOnError="false"
1412
stopOnFailure="false"
15-
verbose="true"
1613
>
1714
<testsuites>
1815
<testsuite name="Laravel DB Profiler Test Suite">
1916
<directory suffix="Test.php">./tests</directory>
2017
</testsuite>
2118
</testsuites>
2219

23-
<coverage processUncoveredFiles="true">
20+
<source>
2421
<include>
2522
<directory suffix=".php">./src</directory>
2623
</include>
2724
<exclude>
2825
<file>./src/DbProfilerDumper.php</file>
2926
</exclude>
30-
</coverage>
27+
</source>
3128
</phpunit>

0 commit comments

Comments
 (0)