You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
{
$I->assertLessThan(2,1);
$I->assertLessThanOrEqual(2,1);
$I->assertGreaterThan(1,2);
$I->assertGreaterThanOrEqual(1,2);
}
Each of these pass, although they contradict the documentation.
The text was updated successfully, but these errors were encountered:
apkostka
added a commit
to apkostka/Codeception
that referenced
this issue
Feb 17, 2015
In the Asserts Module documentation, it is claimed that when using
assertGreaterThan($expected, $actual)
, the expression$expected > $actual
should evaluate totrue
. The order of parameters is the same forassertGreaterThanOrEqual
,assertLessThan
, andassertLessThanOrEqual
.However, this is the opposite of actual functionality, as documented in PHPUnit. This can be tested with the following Cest code:
Each of these pass, although they contradict the documentation.
The text was updated successfully, but these errors were encountered: