Skip to content

Commit 63995df

Browse files
Applied ECS, adapted workflows.
1 parent 75115c3 commit 63995df

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ jobs:
4343
run: "composer install --no-interaction --no-progress --no-suggest"
4444

4545
- name: "EasyCodingStandards for src"
46-
run: "vendor/bin/ecs check src --no-interaction --no-progress-bar"
46+
run: "vendor/bin/ecs check src tests --no-interaction --no-progress-bar"
4747

4848
- name: "PhpStan for src"
4949
run: "vendor/bin/phpstan analyse --error-format=checkstyle src --level=8 | cs2pr"
5050

51+
- name: "PhpStan for tests"
52+
run: "vendor/bin/phpstan analyse --error-format=checkstyle tests --level=6 | cs2pr"
53+
5154
- name: "PHPUnit Test"
5255
run: "vendor/bin/phpunit tests/BaseTest.php"

src/ConsecutiveParams.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
namespace SEEC\PhpUnit\Helper;
66

7-
use PHPUnit\Framework\TestCase;
87
use function array_column;
98
use function count;
109
use PHPUnit\Framework\Constraint\Callback;
1110
use PHPUnit\Framework\Constraint\Constraint;
11+
use PHPUnit\Framework\TestCase;
1212

1313
trait ConsecutiveParams
1414
{

tests/BaseTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use PHPUnit\Framework\TestCase;
88
use SEEC\PhpUnit\Helper\ConsecutiveParams;
9-
use stdClass;
109

1110
final class TestableClass
1211
{

0 commit comments

Comments
 (0)