Skip to content

Commit

Permalink
Fix count() countable error message in php7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Apr 14, 2018
1 parent 7c11751 commit 9ec218f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Valitron/ValidateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public function testOptionalFieldFilter()
$this->assertEquals($v->data(), array('foo' => 'bar'));
}

public function testAccurateErrorCount()
public function testAccurateErrorShouldReturnFalse()
{
$v = new Validator(array('name' => 'Chester Tester'));
$v->rule('required', 'name');
$this->assertSame(1, count($v->errors('name')));
$this->assertFalse($v->errors('name'));
}
public function testArrayOfFieldsToValidate()
{
Expand Down

0 comments on commit 9ec218f

Please sign in to comment.