Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CS/QA: Tests: add PSR-4 compliant namespace declarations #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
grogy merged 1 commit into develop from feature/qa-add-namespaces-to-tests
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions composer.json
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
}
},
"autoload-dev": {
"classmap": [
"./tests/"
]
"psr-4": {
"PHP_Parallel_Lint\\PhpParallelLint\\Tests\\": "tests/"
}
},
"bin": [
"parallel-lint"
Expand Down
10 changes: 5 additions & 5 deletions phpcs.xml.dist
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@

<!-- To be addressed in test refactor. -->
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>/tests/Output\.phpt$</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>/tests/*\.php[t]?$</exclude-pattern>
<exclude-pattern>/tests/OutputTest\.php$</exclude-pattern>
</rule>
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
<exclude-pattern>/tests/*\.phpt$</exclude-pattern>
<exclude-pattern>/tests/*\.php$</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>/tests/skip-on-5\.3/*\.php$</exclude-pattern>
</rule>
<rule ref="PSR12.Files.FileHeader.SpacingAfterBlock">
<exclude-pattern>/tests/skip-on-5.3/trait\.php$</exclude-pattern>
Expand Down
2 changes: 2 additions & 0 deletions tests/Manager.run.phpt → tests/ManagerRunTest.php
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* @testCase
*/

namespace PHP_Parallel_Lint\PhpParallelLint\Tests;

require_once __DIR__ . '/../src/polyfill.php';
require __DIR__ . '/../vendor/autoload.php';

Expand Down
2 changes: 2 additions & 0 deletions tests/Output.phpt → tests/OutputTest.php
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* @testCase
*/

namespace PHP_Parallel_Lint\PhpParallelLint\Tests;

require_once __DIR__ . '/../src/polyfill.php';
require __DIR__ . '/../vendor/autoload.php';

Expand Down
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* @testCase
*/

namespace PHP_Parallel_Lint\PhpParallelLint\Tests;

require_once __DIR__ . '/../src/polyfill.php';
require __DIR__ . '/../vendor/autoload.php';

Expand Down
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* @testCase
*/

namespace PHP_Parallel_Lint\PhpParallelLint\Tests;

require_once __DIR__ . '/../src/polyfill.php';
require __DIR__ . '/../vendor/autoload.php';

Expand Down
2 changes: 2 additions & 0 deletions tests/SkipLintProcess.phpt → tests/SkipLintProcessTest.php
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* @testCase
*/

namespace PHP_Parallel_Lint\PhpParallelLint\Tests;

require_once __DIR__ . '/../src/polyfill.php';
require __DIR__ . '/../vendor/autoload.php';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* @testCase
*/

namespace PHP_Parallel_Lint\PhpParallelLint\Tests;

require_once __DIR__ . '/../src/polyfill.php';
require __DIR__ . '/../vendor/autoload.php';

Expand Down

AltStyle によって変換されたページ (->オリジナル) /