Skip to content

Commit 5010405

Browse files
committed
Fix deps and namespaces on tests.
1 parent e004494 commit 5010405

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
run: phive install --trust-gpg-keys '12CE0F1D262429A5'
7575

7676
- name: Run PHP CodeSniffer
77-
run: vendor/bin/phpcs src/ tests/
77+
run: composer cs-check
7878

7979
- name: Run psalm
8080
if: success() || failure()

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"cakephp/cakephp": "^5.0.1"
99
},
1010
"require-dev": {
11+
"cakephp/cakephp-codesniffer": "~5.1.0",
1112
"phpunit/phpunit": "^10.1"
1213
},
1314
"autoload": {
@@ -28,7 +29,7 @@
2829
],
2930
"cs-check": "phpcs --colors -p",
3031
"cs-fix": "phpcbf --colors -p",
31-
"stan": "phpstan analyse",
32+
"stan": "tools/psalm",
3233
"test": "phpunit --colors=always"
3334
},
3435
"config": {

tests/TestCase/RuleBased/FeatureManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Test\TestCase\RuleBased;
4+
namespace FeatureFlags\Test\TestCase\RuleBased;
55

66
use Cake\TestSuite\TestCase;
77
use Closure;

tests/TestCase/Simple/FeatureManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace Test\TestCase\Simple;
4+
namespace FeatureFlags\Test\TestCase\Simple;
55

66
use Cake\TestSuite\TestCase;
77
use FeatureFlags\Simple\FeatureManager;

0 commit comments

Comments
 (0)