Пример #1
0
 /**
  * The field represents the field in the source that was validated and
  * is only set by passing the string into the constructor
  *
  * @return null
  */
 public function testGetField()
 {
     $this->assertEquals($this->field, $this->error->getField());
     /* 
      * field can also be scalar values because this is also allowed
      * in the coordinator and other subsystems
      */
     $error = new Error(0, 'message for current field');
     $this->assertEquals(0, $error->getField());
     $error = new Error(101, 'message for current field');
     $this->assertEquals(101, $error->getField());
 }