You are here

protected function CoderSniffUnitTest::compatibleSetUp in Coder 8.3.x

Sets up this unit test.

Return value

void

File

tests/Drupal/CoderSniffUnitTest.php, line 62

Class

CoderSniffUnitTest

Namespace

Drupal\Test

Code

protected function compatibleSetUp() {
  $class = get_class($this);
  $this->rootDir = __DIR__ . '/../../';
  $this->testsDir = __DIR__ . '/';

  // Required to pull in all the defines from the tokens file.
  $tokens = new Tokens();
  if (defined('PHP_CODESNIFFER_VERBOSITY') === false) {
    define('PHP_CODESNIFFER_VERBOSITY', 0);
  }
  if (defined('PHP_CODESNIFFER_CBF') === false) {
    define('PHP_CODESNIFFER_CBF', 0);
  }
}