Skip to content

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
merged 1 commit into from
Mar 4, 2022

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Mar 3, 2022

Includes:

  • Renaming the files to reflect the name of the class therein and to use the php instead of phpt file extension.
  • Updating the autoload-dev directive in the composer.json file.
  • Updating the exclusions in the PHPCS config.

Note: using PSR-4 compliant *Test,php filenames will (temporarily) silently break the running of the tests for PHP 5.3-5.5 as Nette Tester 1.x can't find the tests anymore.
We can ignore this for now as this will be fixed in one of the next PRs where the tests will switch over to the PHPUnit testing framework.

@jrfnl jrfnl added this to the 2.0.0 milestone Mar 3, 2022
@jrfnl jrfnl requested a review from grogy March 3, 2022 15:24
@jrfnl jrfnl marked this pull request as draft March 3, 2022 15:28
@jrfnl
Copy link
Collaborator Author

jrfnl commented Mar 3, 2022

Sorry, forgot I could only pull this after #103 has been merged. Will rebase after that PR has gone in.

@grogy
Copy link
Member

grogy commented Mar 3, 2022

@jrfnl you can rebase :)

@jrfnl jrfnl force-pushed the feature/qa-add-namespaces-to-tests branch from 725f88e to f9d6d90 Compare March 3, 2022 16:07
@jrfnl
Copy link
Collaborator Author

jrfnl commented Mar 3, 2022

@grogy Done! Build running now. I expect it to pass.

@jrfnl jrfnl marked this pull request as ready for review March 3, 2022 16:08
@grogy
Copy link
Member

grogy commented Mar 3, 2022

Great, it makes sense. When pass tests than I merged it :)

Includes:
* Renaming the files to reflect the name of the class therein and to use the `php` instead of `phpt` file extension.
* Updating the `autoload-dev` directive in the `composer.json` file.
* Updating the exclusions in the PHPCS config.

Note: using PSR-4 compliant `*Test,php` filenames will (temporarily) silently break the running of the tests for PHP 5.3-5.5 as Nette Tester 1.x can't find the tests anymore.
We can ignore this for now as this will be fixed in one of the next PRs where the tests will switch over to the PHPUnit testing framework.
@jrfnl jrfnl force-pushed the feature/qa-add-namespaces-to-tests branch from f9d6d90 to d589157 Compare March 3, 2022 22:12
@jrfnl
Copy link
Collaborator Author

jrfnl commented Mar 3, 2022

Hmm... not sure why the build didn't run/update statuses, but I've retriggered it now and looks like it's running.

@grogy grogy merged commit 9e024d4 into develop Mar 4, 2022
@grogy grogy deleted the feature/qa-add-namespaces-to-tests branch March 4, 2022 05:21
@grogy
Copy link
Member

grogy commented Mar 4, 2022

Thank you. GitHub actions were freezen :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants