Esempio n. 1
0
 /**
  * Sets up this unit test.
  *
  * @return void
  */
 protected function setUp()
 {
     if (self::$phpcs === null) {
         self::$phpcs = new PHP_CodeSniffer();
     }
     $class = get_class($this);
     $this->standardsDir = $GLOBALS['PHP_CODESNIFFER_STANDARD_DIRS'][$class];
 }
 protected function setUp()
 {
     if (defined('TEST_EXT')) {
         $this->testExtension = TEST_EXT;
     }
     self::$phpcs = new PHP_CodeSniffer();
     $this->testBaseName = preg_replace("/{$this->testExtension}\$/", '', get_class($this));
 }
 /**
  * Sets up this unit test.
  *
  * @return void
  */
 protected function setUp()
 {
     if (self::$phpcs === null) {
         self::$phpcs = new PHP_CodeSniffer();
     }
 }