validateNotBlank() public method

public validateNotBlank ( $value, $errorMessage, $errorField = null )
Example #1
0
 /**
  * @test
  */
 public function shouldNotTreatZeroAsBlank()
 {
     //given
     $validatable = new Validatable();
     //when
     $validatable->validateNotBlank('0', 'blank');
     //then
     Assert::thatArray($validatable->getErrors())->isEmpty();
     Assert::thatArray($validatable->getErrorFields())->isEmpty();
 }