/** * @group CoreExt_Validate_Validatable */ public function testValidacaoGeralRetornaFalseSeUmAtributoForInvalido() { $data = array('nome' => ''); $entity = new CoreExt_EntityStub($data); $this->assertFalse($entity->isValid()); $this->assertEquals('Obrigatório.', $entity->getError('nome')); $this->assertTrue($entity->hasErrors()); }