Fixed misleading isFalse and isTrue in Assert

This commit is contained in:
Marcin Kurczewski 2014-06-13 12:01:19 +02:00
parent a243f6b91a
commit a945a1d6db
2 changed files with 3 additions and 3 deletions

View file

@ -49,12 +49,12 @@ class Assert
public function isTrue($actual)
{
return $this->areEqual(1, intval(boolval($actual)));
return $this->areEqual(true, $actual);
}
public function isFalse($actual)
{
return $this->areEqual(0, intval(boolval($actual)));
return $this->areEqual(false, $actual);
}
public function areEqual($expected, $actual)

View file

@ -6,7 +6,7 @@ class AcceptUserRegistrationJobTest extends AbstractTest
$this->grantAccess('acceptUserRegistration');
$user = $this->userMocker->mockSingle();
$this->assert->isFalse($user->isStaffConfirmed());
$this->assert->isNull($user->isStaffConfirmed());
$user = $this->assert->doesNotThrow(function() use ($user)
{