File tree Expand file tree Collapse file tree 7 files changed +40
-38
lines changed Expand file tree Collapse file tree 7 files changed +40
-38
lines changed Original file line number Diff line number Diff line change 8
8
strategy :
9
9
fail-fast : false
10
10
matrix :
11
- php : [8.1 , 8.2 ]
11
+ php : [8.2 , 8.3, 8.4 ]
12
12
stability : [prefer-lowest, prefer-stable]
13
13
14
14
name : PHP ${{ matrix.php }} / ${{ matrix.stability }}
15
15
16
16
steps :
17
17
- name : Checkout code
18
- uses : actions/checkout@v2
18
+ uses : actions/checkout@v4
19
19
20
20
- name : Setup PHP
21
21
uses : shivammathur/setup-php@v2
41
41
run : vendor/bin/phpunit --colors=always --coverage-clover ./build/logs/clover.xml
42
42
43
43
- name : Code coverage
44
- uses : codecov/codecov-action@v1
44
+ uses : codecov/codecov-action@v3
45
45
with :
46
- file : ./build/logs/clover.xml
46
+ token : ${{ secrets.CODECOV_TOKEN }}
47
+ files : ./build/logs/clover.xml
48
+ fail_ci_if_error : true
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Database Profiler for Laravel Web and Console Applications.
19
19
20
20
| Laravel | Database Profiler |
21
21
| ---------| ------------------------------------------------------------------------|
22
- | 11.x | _ [ Support ] ( https://buymeacoffee .com/dmitry. ivanov ) _ ☕ |
22
+ | 11.x | [ 11.x ] ( https://github .com/dmitry- ivanov/laravel-db-profiler/tree/11.x ) |
23
23
| 10.x | [ 10.x] ( https://github.com/dmitry-ivanov/laravel-db-profiler/tree/10.x ) |
24
24
| 9.x | [ 9.x] ( https://github.com/dmitry-ivanov/laravel-db-profiler/tree/9.x ) |
25
25
| 8.x | [ 8.x] ( https://github.com/dmitry-ivanov/laravel-db-profiler/tree/8.x ) |
Original file line number Diff line number Diff line change 12
12
13
13
}],
14
14
"require" : {
15
- "php" : " ^8.1 " ,
16
- "illuminate/database" : " ^10 .0" ,
17
- "illuminate/support" : " ^10 .0"
15
+ "php" : " ^8.2 " ,
16
+ "illuminate/database" : " ^11 .0" ,
17
+ "illuminate/support" : " ^11 .0"
18
18
},
19
19
"require-dev" : {
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"
20
+ "phpunit/phpunit" : " ^11.3.6 " ,
21
+ "mockery/mockery" : " ^1.6.10 " ,
22
+ "orchestra/testbench" : " ^9.11.2 " ,
23
+ "illuminated/testing-tools" : " ^11 .0" ,
24
+ "illuminated/helper-functions" : " ^11 .0"
25
25
},
26
26
"autoload" : {
27
27
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.5/phpunit.xsd"
3
- backupGlobals =" false"
4
- backupStaticProperties =" false"
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/11.3/phpunit.xsd"
5
3
beStrictAboutTestsThatDoNotTestAnything =" false"
6
4
beStrictAboutOutputDuringTests =" true"
7
5
bootstrap =" vendor/autoload.php"
8
- cacheDirectory =" .phpunit.cache"
9
6
colors =" true"
10
- processIsolation =" false"
11
- stopOnError =" false"
12
- stopOnFailure =" false"
7
+ displayDetailsOnPhpunitDeprecations =" true"
8
+ displayDetailsOnTestsThatTriggerErrors =" true"
9
+ displayDetailsOnTestsThatTriggerNotices =" true"
10
+ displayDetailsOnTestsThatTriggerWarnings =" true"
13
11
>
14
12
<testsuites >
15
13
<testsuite name =" Laravel DB Profiler Test Suite" >
16
- <directory suffix = " Test.php " >./tests</directory >
14
+ <directory >./tests</directory >
17
15
</testsuite >
18
16
</testsuites >
19
17
20
18
<source >
21
19
<include >
22
- <directory suffix = " .php " >./src</directory >
20
+ <directory >./src</directory >
23
21
</include >
22
+
24
23
<exclude >
25
24
<file >./src/DbProfilerDumper.php</file >
26
25
</exclude >
Original file line number Diff line number Diff line change 2
2
3
3
namespace Illuminated \Database \Tests ;
4
4
5
+ use PHPUnit \Framework \Attributes \Test ;
6
+
5
7
class ConsoleProfilingTest extends TestCase
6
8
{
7
9
/**
@@ -22,33 +24,33 @@ protected function withVvv(): self
22
24
return $ this ;
23
25
}
24
26
25
- /** @test */
26
- public function it_is_disabled_if_environment_is_not_local ()
27
+ #[Test]
28
+ public function it_is_disabled_if_environment_is_not_local (): void
27
29
{
28
30
$ this ->notLocal ()->boot ();
29
31
30
32
$ this ->assertDbProfilerNotActivated ();
31
33
}
32
34
33
- /** @test */
34
- public function it_is_disabled_if_environment_is_local_but_there_is_no_vvv_option ()
35
+ #[Test]
36
+ public function it_is_disabled_if_environment_is_local_but_there_is_no_vvv_option (): void
35
37
{
36
38
$ this ->local ()->boot ();
37
39
38
40
$ this ->assertDbProfilerNotActivated ();
39
41
}
40
42
41
- /** @test */
42
- public function it_is_enabled_if_environment_is_local_and_there_is_vvv_option ()
43
+ #[Test]
44
+ public function it_is_enabled_if_environment_is_local_and_there_is_vvv_option (): void
43
45
{
44
46
$ this ->local ()->withVvv ()->boot ();
45
47
46
48
$ this ->assertDbProfilerActivated ();
47
49
$ this ->assertDbQueriesDumped ();
48
50
}
49
51
50
- /** @test */
51
- public function it_is_enabled_if_environment_is_not_local_but_there_is_a_force_flag_in_config ()
52
+ #[Test]
53
+ public function it_is_enabled_if_environment_is_not_local_but_there_is_a_force_flag_in_config (): void
52
54
{
53
55
config (['db-profiler.force ' => true ]);
54
56
Original file line number Diff line number Diff line change 3
3
namespace Illuminated \Database \Tests ;
4
4
5
5
use Illuminate \Support \Facades \Request ;
6
+ use PHPUnit \Framework \Attributes \Test ;
6
7
7
8
class HttpProfilingTest extends TestCase
8
9
{
@@ -24,24 +25,24 @@ protected function withVvv(): self
24
25
return $ this ;
25
26
}
26
27
27
- /** @test */
28
- public function it_is_disabled_if_environment_is_not_local ()
28
+ #[Test]
29
+ public function it_is_disabled_if_environment_is_not_local (): void
29
30
{
30
31
$ this ->notLocal ()->boot ();
31
32
32
33
$ this ->assertDbProfilerNotActivated ();
33
34
}
34
35
35
- /** @test */
36
- public function it_is_disabled_if_environment_is_local_but_there_is_no_vvv_request_param ()
36
+ #[Test]
37
+ public function it_is_disabled_if_environment_is_local_but_there_is_no_vvv_request_param (): void
37
38
{
38
39
$ this ->local ()->boot ();
39
40
40
41
$ this ->assertDbProfilerNotActivated ();
41
42
}
42
43
43
- /** @test */
44
- public function it_is_enabled_if_environment_is_local_and_there_is_vvv_request_param ()
44
+ #[Test]
45
+ public function it_is_enabled_if_environment_is_local_and_there_is_vvv_request_param (): void
45
46
{
46
47
$ this ->local ()->withVvv ()->boot ();
47
48
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ class Post extends Model
8
8
{
9
9
/**
10
10
* The attributes that are mass assignable.
11
- *
12
- * @var array
13
11
*/
14
12
protected $ fillable = ['title ' ];
15
13
}
You can’t perform that action at this time.
0 commit comments