isValid() public method

Returns whether the field is valid.
public isValid ( ) : boolean
return boolean
Example #1
0
 public function testInvalidIfFieldIsInvalid()
 {
     $group = new FieldGroup('author');
     $group->add($this->createInvalidMockField('firstName'));
     $group->add($this->createValidMockField('lastName'));
     $group->bind(array('firstName' => 'Bernhard', 'lastName' => 'Potencier'));
     $this->assertFalse($group->isValid());
 }