-
-
Notifications
You must be signed in to change notification settings - Fork 87
Test enhancement #10
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
Test enhancement #10
Conversation
|
|
tests/NativeCalculatorTest.php
Outdated
| @@ -0,0 +1,102 @@ | |||
| <?php | |||
|
|
|||
| namespace Brick\Math\Tests; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Brick\Math\Tests\Internal\Calculator and file moved to the appropriate directory
| $this->assertBigIntegerEquals($value, unserialize(serialize($number))); | ||
| } | ||
|
|
||
| public function testJsonSerialize() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this test below testDirectCallToUnserialize!
|
Hi @BenMorel, thank you for your reply. |
| @@ -0,0 +1,103 @@ | |||
| <?php | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File name should be tests/Internal/Calculator/NativeCalculatorTest.php
|
I know, hence the "note to self" for posterity. Please just move the NativeCalculatorTest as requested and it will be good to merge! |
|
I'm sorry for that delay because I'm busy in the past of two days. |
| * | ||
| * @param string $a The input numerator. | ||
| * @param string $b The input denominator. | ||
| * @param string $expectedValue The expected denominator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not numerator & denominator here. You can just remove the descriptions.
| * | ||
| * @param string $a The input numerator. | ||
| * @param string $b The input denominator. | ||
| * @param string $expectedValue The expected denominator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
| * | ||
| * @param string $a The input numerator. | ||
| * @param string $b The input denominator. | ||
| * @param string $expectedValue The expected denominator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
|
All good, thanks! |
Changed log
suggestkey incomposer.jsonto suggest the extensions.