Skip to content

Commit 9078b13

Browse files
committed
Tests: move File tests
The tests in the `tests/Core` directory largely follow the directory layout of the `src` directory, but the `File` tests did not (for historic reasons). This commit fixes that.
1 parent 69b5653 commit 9078b13

34 files changed

+17
-17
lines changed

tests/Core/File/FindEndOfStatementTest.php renamed to tests/Core/Files/File/FindEndOfStatementTest.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313
use PHP_CodeSniffer\Util\Tokens;

tests/Core/File/FindExtendedClassNameTest.php renamed to tests/Core/Files/File/FindExtendedClassNameTest.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313

tests/Core/File/FindImplementedInterfaceNamesTest.php renamed to tests/Core/Files/File/FindImplementedInterfaceNamesTest.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313

tests/Core/File/FindStartOfStatementTest.php renamed to tests/Core/Files/File/FindStartOfStatementTest.php

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

12-
namespace PHP_CodeSniffer\Tests\Core\File;
12+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1313

1414
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1515
use PHP_CodeSniffer\Util\Tokens;

tests/Core/File/GetClassPropertiesTest.php renamed to tests/Core/Files/File/GetClassPropertiesTest.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313

tests/Core/File/GetConditionTest.php renamed to tests/Core/Files/File/GetConditionTest.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313
use PHP_CodeSniffer\Util\Tokens;

tests/Core/File/GetDeclarationNameJSTest.php renamed to tests/Core/Files/File/GetDeclarationNameJSTest.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313

tests/Core/File/GetDeclarationNameParseError1Test.php renamed to tests/Core/Files/File/GetDeclarationNameParseError1Test.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313

tests/Core/File/GetDeclarationNameParseError2Test.php renamed to tests/Core/Files/File/GetDeclarationNameParseError2Test.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313

tests/Core/File/GetDeclarationNameTest.php renamed to tests/Core/Files/File/GetDeclarationNameTest.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313

tests/Core/File/GetMemberPropertiesTest.php renamed to tests/Core/Files/File/GetMemberPropertiesTest.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313

tests/Core/File/GetMethodParametersParseError1Test.php renamed to tests/Core/Files/File/GetMethodParametersParseError1Test.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313

tests/Core/File/GetMethodParametersParseError2Test.php renamed to tests/Core/Files/File/GetMethodParametersParseError2Test.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313

tests/Core/File/GetMethodParametersTest.php renamed to tests/Core/Files/File/GetMethodParametersTest.php

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

12-
namespace PHP_CodeSniffer\Tests\Core\File;
12+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1313

1414
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1515

tests/Core/File/GetMethodPropertiesTest.php renamed to tests/Core/Files/File/GetMethodPropertiesTest.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313

tests/Core/File/GetTokensAsStringTest.php renamed to tests/Core/Files/File/GetTokensAsStringTest.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313

tests/Core/File/IsReferenceTest.php renamed to tests/Core/Files/File/IsReferenceTest.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\File;
10+
namespace PHP_CodeSniffer\Tests\Core\Files\File;
1111

1212
use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest;
1313

0 commit comments

Comments
 (0)