You are here

class AcsfMessageResponseUnitTest in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 tests/AcsfMessageResponseUnitTest.inc \AcsfMessageResponseUnitTest

This simple interface defines the way that responses are constructed.

Hierarchy

Expanded class hierarchy of AcsfMessageResponseUnitTest

File

tests/AcsfMessageResponseUnitTest.inc, line 8

View source
class AcsfMessageResponseUnitTest extends AcsfMessageResponse {

  /**
   * Determines whether the test failed.
   *
   * @return bool
   *   Whether the test failed.
   */
  public function failed() {
    if ($this->code) {
      return TRUE;
    }
    return FALSE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AcsfMessageResponse::$body public property The body of the response.
AcsfMessageResponse::$code public property The response code from the remote call.
AcsfMessageResponse::$endpoint public property The endpoint on the remote service.
AcsfMessageResponse::__construct public function Constructor.
AcsfMessageResponseUnitTest::failed public function Determines whether the test failed. Overrides AcsfMessageResponse::failed