getErrors() public méthode

public getErrors ( )
Exemple #1
0
 /**
  * @test
  */
 public function emptyShouldNotReturnErrorForEmpty()
 {
     //given
     $object = '';
     $validatable = new Validatable();
     //when
     $validatable->validateEmpty($object, 'error1');
     //then
     $this->assertEmpty($validatable->getErrors());
 }