You are here

public function ConvertTest::setUp in Flysystem 3.0.x

Same name and namespace in other branches
  1. 8 tests/src/Unit/Logger/ConvertTest.php \Drupal\Tests\flysystem\Unit\Logger\ConvertTest::setUp()
  2. 3.x tests/src/Unit/Logger/ConvertTest.php \Drupal\Tests\flysystem\Unit\Logger\ConvertTest::setUp()
  3. 2.0.x tests/src/Unit/Logger/ConvertTest.php \Drupal\Tests\flysystem\Unit\Logger\ConvertTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/Logger/ConvertTest.php, line 18

Class

ConvertTest
@coversDefaultClass \Drupal\flysystem\Logger\Convert @group flysystem

Namespace

Drupal\Tests\flysystem\Unit\Logger

Code

public function setUp() {
  $consts = [
    'REQUIREMENT_INFO' => -1,
    'REQUIREMENT_OK' => 0,
    'REQUIREMENT_WARNING' => 1,
    'REQUIREMENT_ERROR' => 2,
  ];
  foreach ($consts as $const => $value) {
    if (!defined($const)) {
      define($const, $value);
    }
  }
}