/**
  * Sets up this unit test.
  *
  * @return void
  */
 protected function setUp()
 {
     if (!defined('PHP_CODESNIFFER_IN_TESTS')) {
         define('PHP_CODESNIFFER_IN_TESTS', true);
     }
     if (self::$phpcs === null) {
         self::$phpcs = new PHP_CodeSniffer();
     }
 }
Example #2
0
 /**
  * Sets up this unit test.
  *
  * @return void
  */
 protected function setUp()
 {
     if (self::$phpcs === null) {
         self::$phpcs = new PHP_CodeSniffer();
     }
 }