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