File tree Expand file tree Collapse file tree 14 files changed +59
-37
lines changed
src/TextUI/Configuration/Xml/CodeCoverage
unit/TextUI/Configuration Expand file tree Collapse file tree 14 files changed +59
-37
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phive xmlns =" https://phar.io/phive" >
3
3
<phar name =" phpab" version =" ^1.29" installed =" 1.29.3" location =" ./tools/phpab" copy =" true" />
4
- <phar name =" php-cs-fixer" version =" ^3.80" installed =" 3.82.2 " location =" ./tools/php-cs-fixer" copy =" true" />
4
+ <phar name =" php-cs-fixer" version =" ^3.80" installed =" 3.84.0 " location =" ./tools/php-cs-fixer" copy =" true" />
5
5
<phar name =" humbug/php-scoper" version =" ^0.18" installed =" 0.18.17" location =" ./tools/php-scoper" copy =" true" />
6
- <phar name =" composer" version =" ^2.8" installed =" 2.8.9 " location =" ./tools/composer" copy =" true" />
6
+ <phar name =" composer" version =" ^2.8" installed =" 2.8.10 " location =" ./tools/composer" copy =" true" />
7
7
</phive >
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ public function openClover(): OpenClover
184
184
);
185
185
}
186
186
187
- return $ this ->openClover () ;
187
+ return $ this ->openClover ;
188
188
}
189
189
190
190
/**
Original file line number Diff line number Diff line change 29
29
<cobertura outputFile =" cobertura.xml" />
30
30
<crap4j outputFile =" crap4j.xml" threshold =" 30" />
31
31
<html outputDirectory =" coverage" lowUpperBound =" 50" highLowerBound =" 90" />
32
- <openclover outputFile =" clover .xml" />
32
+ <openclover outputFile =" openclover .xml" />
33
33
<php outputFile =" coverage.php" />
34
34
<text outputFile =" coverage.txt" showUncoveredFiles =" false" showOnlySummary =" true" />
35
35
<xml outputDirectory =" coverage" />
Original file line number Diff line number Diff line change @@ -1563,6 +1563,26 @@ public function testDoNotFailOnPhpunitNoticeMayNotBeConfigured(): void
1563
1563
$ configuration ->doNotFailOnPhpunitNotice ();
1564
1564
}
1565
1565
1566
+ #[TestDox('--do-not-fail-on-phpunit-warning ' )]
1567
+ public function testDoNotFailOnPhpunitWarning (): void
1568
+ {
1569
+ $ configuration = (new Builder )->fromParameters (['--do-not-fail-on-phpunit-warning ' ]);
1570
+
1571
+ $ this ->assertTrue ($ configuration ->hasDoNotFailOnPhpunitWarning ());
1572
+ $ this ->assertTrue ($ configuration ->doNotFailOnPhpunitWarning ());
1573
+ }
1574
+
1575
+ public function testDoNotFailOnPhpunitWarningMayNotBeConfigured (): void
1576
+ {
1577
+ $ configuration = (new Builder )->fromParameters ([]);
1578
+
1579
+ $ this ->assertFalse ($ configuration ->hasDoNotFailOnPhpunitWarning ());
1580
+
1581
+ $ this ->expectException (Exception::class);
1582
+
1583
+ $ configuration ->doNotFailOnPhpunitWarning ();
1584
+ }
1585
+
1566
1586
#[TestDox('--do-not-fail-on-empty-test-suite ' )]
1567
1587
public function testDoNotFailOnEmptyTestSuite (): void
1568
1588
{
Original file line number Diff line number Diff line change @@ -193,6 +193,9 @@ public function testCodeCoverageConfigurationIsReadCorrectly(): void
193
193
$ this ->assertTrue ($ codeCoverage ->hasClover ());
194
194
$ this ->assertSame (TEST_FILES_PATH . 'clover.xml ' , $ codeCoverage ->clover ()->target ()->path ());
195
195
196
+ $ this ->assertTrue ($ codeCoverage ->hasOpenClover ());
197
+ $ this ->assertSame (TEST_FILES_PATH . 'openclover.xml ' , $ codeCoverage ->openClover ()->target ()->path ());
198
+
196
199
$ this ->assertTrue ($ codeCoverage ->hasCobertura ());
197
200
$ this ->assertSame (TEST_FILES_PATH . 'cobertura.xml ' , $ codeCoverage ->cobertura ()->target ()->path ());
198
201
Original file line number Diff line number Diff line change 1
1
{
2
2
"require-dev" : {
3
- "phpstan/phpstan" : " ^2.1.17 " ,
3
+ "phpstan/phpstan" : " ^2.1.18 " ,
4
4
"phpstan/extension-installer" : " ^1.4.3" ,
5
5
"phpstan/phpstan-strict-rules" : " ^2.0.4" ,
6
6
"tomasvotruba/type-coverage" : " ^2.0.2" ,
Original file line number Diff line number Diff line change 219
219
},
220
220
{
221
221
"name" : " phpstan/phpstan" ,
222
- "version" : " 2.1.17 " ,
223
- "version_normalized" : " 2.1.17 .0" ,
222
+ "version" : " 2.1.18 " ,
223
+ "version_normalized" : " 2.1.18 .0" ,
224
224
"source" : {
225
225
"type" : " git" ,
226
226
"url" : " https://github.com/phpstan/phpstan.git" ,
227
- "reference" : " 89b5ef665716fa2a52ecd2633f21007a6a349053 "
227
+ "reference" : " ee1f390b7a70cdf74a2b737e554f68afea885db7 "
228
228
},
229
229
"dist" : {
230
230
"type" : " zip" ,
231
- "url" : " https://api.github.com/repos/phpstan/phpstan/zipball/89b5ef665716fa2a52ecd2633f21007a6a349053 " ,
232
- "reference" : " 89b5ef665716fa2a52ecd2633f21007a6a349053 " ,
231
+ "url" : " https://api.github.com/repos/phpstan/phpstan/zipball/ee1f390b7a70cdf74a2b737e554f68afea885db7 " ,
232
+ "reference" : " ee1f390b7a70cdf74a2b737e554f68afea885db7 " ,
233
233
"shasum" : " "
234
234
},
235
235
"require" : {
238
238
"conflict" : {
239
239
"phpstan/phpstan-shim" : " *"
240
240
},
241
- "time" : " 2025-05-21T20:55:28 +00:00" ,
241
+ "time" : " 2025-07-17T17:22:31 +00:00" ,
242
242
"bin" : [
243
243
" phpstan" ,
244
244
" phpstan.phar"
Original file line number Diff line number Diff line change 3
3
'name ' => '__root__ ' ,
4
4
'pretty_version ' => 'dev-main ' ,
5
5
'version ' => 'dev-main ' ,
6
- 'reference ' => '8586cc36111f3ac6a474d0a15ccb021d1068fc34 ' ,
6
+ 'reference ' => 'a62124f38b2e3c17b2e338dfe5ff9d4ff6279363 ' ,
7
7
'type ' => 'library ' ,
8
8
'install_path ' => __DIR__ . '/../../ ' ,
9
9
'aliases ' => array (),
13
13
'__root__ ' => array (
14
14
'pretty_version ' => 'dev-main ' ,
15
15
'version ' => 'dev-main ' ,
16
- 'reference ' => '8586cc36111f3ac6a474d0a15ccb021d1068fc34 ' ,
16
+ 'reference ' => 'a62124f38b2e3c17b2e338dfe5ff9d4ff6279363 ' ,
17
17
'type ' => 'library ' ,
18
18
'install_path ' => __DIR__ . '/../../ ' ,
19
19
'aliases ' => array (),
47
47
'dev_requirement ' => true ,
48
48
),
49
49
'phpstan/phpstan ' => array (
50
- 'pretty_version ' => '2.1.17 ' ,
51
- 'version ' => '2.1.17 .0 ' ,
52
- 'reference ' => '89b5ef665716fa2a52ecd2633f21007a6a349053 ' ,
50
+ 'pretty_version ' => '2.1.18 ' ,
51
+ 'version ' => '2.1.18 .0 ' ,
52
+ 'reference ' => 'ee1f390b7a70cdf74a2b737e554f68afea885db7 ' ,
53
53
'type ' => 'library ' ,
54
54
'install_path ' => __DIR__ . '/../phpstan/phpstan ' ,
55
55
'aliases ' => array (),
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ can be checked before you run the actual line.
52
52
  ;  ;  ;
53
53
<a href =" https://craftcms.com/ " ><img src =" website/src/images/sponsor/craftcms.png " alt =" Craft CMS " width =" 283 " height =" 64 " ></a >
54
54
<br >
55
- <a href =" https://www.worksome .com/ " ><img src =" website/src/images/sponsor/worksome .png " alt =" Worksome " width =" 283 " height =" 64 " ></a >
55
+ <a href =" https://jobs.ticketswap .com/ " ><img src =" website/src/images/sponsor/ticketswap .png " alt =" TicketSwap " width =" 269 " height =" 64 " ></a >
56
56
  ;  ;  ;
57
57
<a href =" https://www.campoint.net/ " ><img src =" website/src/images/sponsor/campoint.png " alt =" campoint AG " width =" 283 " height =" 64 " ></a >
58
58
<br >
@@ -66,7 +66,6 @@ can be checked before you run the actual line.
66
66
<br >
67
67
<a href =" https://werkenbijbelsimpel.nl/en/about-us/ " ><img src =" website/src/images/sponsor/belsimpel.png " alt =" Belsimpel " width =" 284 " height =" 64 " ></a >
68
68
  ;  ;  ;
69
- <a href =" https://jobs.ticketswap.com/ " ><img src =" website/src/images/sponsor/ticketswap.png " alt =" TicketSwap " width =" 269 " height =" 64 " ></a >
70
69
71
70
72
71
[ ** You can now sponsor my open-source work on PHPStan through GitHub Sponsors.** ] ( https://github.com/sponsors/ondrejmirtes )
You can’t perform that action at this time.
0 commit comments