You are here

public function UnitTest::setUp in Acquia Cloud Site Factory Connector 8.2

Same name and namespace in other branches
  1. 8 tests/AcsfEventsTest.php \UnitTest::setUp()

Setup.

File

tests/AcsfEventsTest.php, line 34
Provides PHPUnit tests for the Acsf Events system.

Class

UnitTest

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__ . '/UnitTestDummyHandler1.php',
    __DIR__ . '/UnitTestDummyHandler2.php',
    __DIR__ . '/UnitTestDummyHandler3.php',
    __DIR__ . '/UnitTestDummyHandlerInterrupt.php',
    __DIR__ . '/UnitTestDummyHandlerIncompatible.php',
  ];
  foreach ($files as $file) {

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

    // phpcs:enable
  }
}