You are here

public function AcsfMessageTest::setUp in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 tests/AcsfMessageTest.php \AcsfMessageTest::setUp()

Setup.

File

tests/AcsfMessageTest.php, line 21
Provides PHPUnit tests for AcsfMessage.

Class

AcsfMessageTest
AcsfMessageTest.

Code

public function setUp() {

  // The files in this directory can't be autoloaded as long as they don't
  // match their classes' namespaces.
  $files = [
    __DIR__ . '/AcsfConfigUnitTest.inc',
    __DIR__ . '/AcsfConfigUnitTestMissingPassword.inc',
    __DIR__ . '/AcsfConfigUnitTestMissingUrl.inc',
    __DIR__ . '/AcsfConfigUnitTestMissingUsername.inc',
    __DIR__ . '/AcsfConfigUnitTestIncompatible.inc',
    __DIR__ . '/AcsfMessageUnitTestSuccess.inc',
    __DIR__ . '/AcsfMessageUnitTestFailure.inc',
    __DIR__ . '/AcsfMessageUnitTestFailureException.inc',
    __DIR__ . '/AcsfMessageUnitTestMissingEndpoint.inc',
    __DIR__ . '/AcsfMessageUnitTestMissingResponse.inc',
    __DIR__ . '/AcsfMessageResponseUnitTest.inc',
  ];
  foreach ($files as $file) {

    // Acquia rules disallow 'include/require' with dynamic arguments.
    // phpcs:disable
    require_once $file;

    // phpcs:enable
  }
}