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

Asserts module greater/less than documentation is opposite of functionality #1721

apkostka opened this issue Feb 17, 2015 · 1 comment


None yet
4 participants
Copy link

commented Feb 17, 2015

In the Asserts Module documentation, it is claimed that when using assertGreaterThan($expected, $actual), the expression $expected > $actual should evaluate to true. The order of parameters is the same for assertGreaterThanOrEqual, assertLessThan, and assertLessThanOrEqual.

However, this is the opposite of actual functionality, as documented in PHPUnit. This can be tested with the following Cest code:

public function test_asserts(ApiTester $I)


Each of these pass, although they contradict the documentation.


This comment has been minimized.

Copy link

commented Oct 3, 2015

@DavertMik IMO this can be closed as it was fixed in 379a3f1

@Naktibalda Naktibalda closed this Jan 14, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.