protected function CoderSniffUnitTest::setUp in Coder 8.3
Same name and namespace in other branches
- 8.2 coder_sniffer/Drupal/Test/CoderSniffUnitTest.php \Drupal\Test\CoderSniffUnitTest::setUp()
Sets up this unit test.
Return value
void
File
- tests/
Drupal/ CoderSniffUnitTest.php, line 63
Class
Namespace
Drupal\TestCode
protected function setUp() {
$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);
}
}