File tree Expand file tree Collapse file tree 5 files changed +26
-9
lines changed Expand file tree Collapse file tree 5 files changed +26
-9
lines changed Original file line number Diff line number Diff line change 24
24
"phpstan/phpstan" : " ^1.0.0" ,
25
25
"phpstan/phpstan-phpunit" : " ^1.0.0" ,
26
26
"phpstan/phpstan-strict-rules" : " ^1.0.0" ,
27
- "phpunit/phpunit" : " ^10.0 "
27
+ "phpunit/phpunit" : " ^10.1 "
28
28
},
29
29
"config" : {
30
30
"allow-plugins" : {
Original file line number Diff line number Diff line change 1
- <?xml version =" 1.0" ?>
1
+ <?xml version =" 1.0" encoding = " UTF-8 " ?>
2
2
<phpunit
3
3
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
4
xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
5
5
beStrictAboutChangesToGlobalState =" true"
6
6
beStrictAboutOutputDuringTests =" true"
7
7
beStrictAboutTodoAnnotatedTests =" true"
8
- colors =" true"
9
8
bootstrap =" tests/bootstrap.php"
9
+ colors =" true"
10
+ requireCoverageMetadata =" true"
11
+ failOnRisky =" true"
12
+ cacheDirectory =" .phpunit.cache"
13
+ displayDetailsOnTestsThatTriggerDeprecations =" true"
14
+ displayDetailsOnTestsThatTriggerWarnings =" true"
15
+ failOnWarning =" true"
16
+ failOnIncomplete =" true"
17
+ failOnEmptyTestSuite =" true"
10
18
>
11
- <coverage >
19
+ <testsuites >
20
+ <testsuite name =" Tests" >
21
+ <directory >tests</directory >
22
+ </testsuite >
23
+ </testsuites >
24
+
25
+ <source >
12
26
<include >
13
- <directory suffix = " .php " >src/ </directory >
27
+ <directory >./src </directory >
14
28
</include >
15
- </coverage >
16
- <testsuite name =" Cdn77 Coding Standard" >
17
- <directory >tests</directory >
18
- </testsuite >
29
+ </source >
19
30
</phpunit >
Original file line number Diff line number Diff line change 5
5
namespace Cdn77 \Sniffs \NamingConventions ;
6
6
7
7
use Cdn77 \TestCase ;
8
+ use PHPUnit \Framework \Attributes \CoversClass ;
8
9
9
10
use function array_keys ;
10
11
use function count ;
11
12
use function json_encode ;
12
13
13
14
use const JSON_THROW_ON_ERROR ;
14
15
16
+ #[CoversClass(ValidConstantNameSniff::class)]
15
17
class ValidConstantNameSniffTest extends TestCase
16
18
{
17
19
public function testErrors (): void
Original file line number Diff line number Diff line change 5
5
namespace Cdn77 \Sniffs \NamingConventions ;
6
6
7
7
use Cdn77 \TestCase ;
8
+ use PHPUnit \Framework \Attributes \CoversClass ;
8
9
9
10
use function array_keys ;
10
11
use function is_array ;
11
12
use function json_encode ;
12
13
13
14
use const JSON_THROW_ON_ERROR ;
14
15
16
+ #[CoversClass(ValidVariableNameSniff::class)]
15
17
class ValidVariableNameSniffTest extends TestCase
16
18
{
17
19
public function testErrors (): void
Original file line number Diff line number Diff line change 5
5
namespace Cdn77 \Sniffs \Ordering ;
6
6
7
7
use Cdn77 \TestCase ;
8
+ use PHPUnit \Framework \Attributes \CoversClass ;
8
9
9
10
use function array_keys ;
10
11
use function json_encode ;
11
12
12
13
use const JSON_THROW_ON_ERROR ;
13
14
15
+ #[CoversClass(AlphabeticallyOrderedConstantsSniff::class)]
14
16
final class AlphabeticallyOrderedConstantsSniffTest extends TestCase
15
17
{
16
18
public function testErrors (): void
You can’t perform that action at this time.
0 commit comments