getField() public method

Name of the field that caused the error.
public getField ( ) : string
return string
Example #1
0
 /**
  * @depends testSerializationDeserialization
  * @param ErrorDetails $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getField(), "TestSample");
     $this->assertEquals($obj->getIssue(), "TestSample");
     $this->assertEquals($obj->getPurchaseUnitReferenceId(), "TestSample");
     $this->assertEquals($obj->getCode(), "TestSample");
 }
 /**
  * @depends testSerializationDeserialization
  * @param ErrorDetails $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getField(), "TestSample");
     $this->assertEquals($obj->getIssue(), "TestSample");
 }