Skip to content
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

refactor: flip assert and actual value position on tests #9260

Merged

Conversation

samsonasik
Copy link
Member

Description

the actual value should be on the right.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@samsonasik samsonasik changed the title refactor: flip assert and actuals value on tests refactor: flip assert and actual value on tests Nov 8, 2024
@samsonasik samsonasik changed the title refactor: flip assert and actual value on tests refactor: flip assert and actual value position on tests Nov 8, 2024
@samsonasik
Copy link
Member Author

Ready to merge 👍

@samsonasik samsonasik added the refactor Pull requests that refactor code label Nov 8, 2024
@kenjis kenjis added the testing Pull requests that changes tests only label Nov 8, 2024
Comment on lines -215 to +218
$expects = $closure(...$router->params());
$actual = $closure(...$router->params());

$this->assertIsCallable($router->controllerName());
$this->assertSame($expects, '123-alpha');
$this->assertSame('123-alpha', $actual);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, Rector did this?

Copy link
Member Author

@samsonasik samsonasik Nov 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

latest main branch, the flip process yes 👍 , variable rename from expects to actual was manually of course :)

@samsonasik
Copy link
Member Author

Thank you @kenjis for the review 👍 , let's merge it ;)

@samsonasik samsonasik merged commit 91275ed into codeigniter4:develop Nov 8, 2024
39 checks passed
@samsonasik samsonasik deleted the refactor-flip-assert-actual branch November 8, 2024 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Pull requests that refactor code testing Pull requests that changes tests only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants