Skip to content

Commit 7858754

Browse files
committed
Tests/Util: move test classes into subdirectories
Move test classes into subdirectories mirroring the name of the class holding the code being tested. Having the tests for each class in their own subdirectory should make it more straight forward to see what code is covered by tests.
1 parent d140424 commit 7858754

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/Core/Util/IsCamelCapsTest.php renamed to tests/Core/Util/Common/IsCamelCapsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
88
*/
99

10-
namespace PHP_CodeSniffer\Tests\Core\Util;
10+
namespace PHP_CodeSniffer\Tests\Core\Util\Common;
1111

1212
use PHP_CodeSniffer\Util\Common;
1313
use PHPUnit\Framework\TestCase;

tests/Core/Util/StripColorsTest.php renamed to tests/Core/Util/Common/StripColorsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
88
*/
99

10-
namespace PHP_CodeSniffer\Tests\Core\Util;
10+
namespace PHP_CodeSniffer\Tests\Core\Util\Common;
1111

1212
use PHP_CodeSniffer\Util\Common;
1313
use PHPUnit\Framework\TestCase;

tests/Core/Util/SuggestTypeTest.php renamed to tests/Core/Util/Common/SuggestTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
88
*/
99

10-
namespace PHP_CodeSniffer\Tests\Core\Util;
10+
namespace PHP_CodeSniffer\Tests\Core\Util\Common;
1111

1212
use PHP_CodeSniffer\Util\Common;
1313
use PHPUnit\Framework\TestCase;

tests/Core/Util/HelpTest.php renamed to tests/Core/Util/Help/HelpTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
88
*/
99

10-
namespace PHP_CodeSniffer\Tests\Core\Util;
10+
namespace PHP_CodeSniffer\Tests\Core\Util\Help;
1111

1212
use PHP_CodeSniffer\Tests\ConfigDouble;
1313
use PHP_CodeSniffer\Util\Help;

0 commit comments

Comments
 (0)