Skip to content

Commit 89e2356

Browse files
committed
tests: move the namespaced-calls checker to Itools\Standards
Re-copied from the docs-repo original. Mapping it in autoload-dev stops composer skipping the class and printing a PSR-4 warning.
1 parent b6b0791 commit 89e2356

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
},
2727
"autoload-dev": {
2828
"psr-4": {
29-
"Itools\\SmartString\\Tests\\": "tests/"
29+
"Itools\\SmartString\\Tests\\": "tests/",
30+
"Itools\\Standards\\": "tests/Integration/"
3031
}
3132
},
3233
"config": {

tests/Integration/NamespacedCallsCheck.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 InteractiveTools\Standards;
4+
namespace Itools\Standards;
55

66
use ReflectionFunction;
77

tests/Integration/NamespacedCallsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Itools\SmartString\Tests\Integration;
55

6-
use InteractiveTools\Standards\NamespacedCallsCheck;
6+
use Itools\Standards\NamespacedCallsCheck;
77
use PHPUnit\Framework\TestCase;
88
use ReflectionClass;
99

0 commit comments

Comments
 (0)