/** * Sets up this unit test. * * @return void */ protected function setUp() { if (self::$phpcs === null) { self::$phpcs = new PHP_CodeSniffer(); } PHP_CodeSniffer::setConfigData('testVersion', null, true); self::$phpcs->process(array(), 'PHPCompatibility'); self::$phpcs->setIgnorePatterns(array()); }
/** * Sets up this unit test. * * @return void */ protected function setUp() { if (self::$phpcs === null) { self::$phpcs = new PHP_CodeSniffer(); } PHP_CodeSniffer::setConfigData('testVersion', null, true); if (method_exists('PHP_CodeSniffer_CLI', 'setCommandLineValues')) { // For PHPCS 2.x self::$phpcs->cli->setCommandLineValues(array('-p', '--colors')); } self::$phpcs->process(array(), __DIR__ . '/../'); self::$phpcs->setIgnorePatterns(array()); }
/** * setUp * * @return void */ public function setUp() { parent::setUp(); $this->_sniffFile = $this->sniffFile('sniff-examples/removed_hash_algorithms.php'); }
/** * setUp * * @return void */ public function setUp() { parent::setUp(); }
/** * setUp * * @return void */ public function setUp() { parent::setUp(); $this->_sniffFile = $this->sniffFile('sniff-examples/ternary_operator.php'); }
/** * setUp * * @return void */ public function setUp() { parent::setUp(); $this->_sniffFile = $this->sniffFile('sniff-examples/nonstatic_magic_methods.php'); }
/** * setUp * * @return void */ public function setUp() { parent::setUp(); $this->_sniffFile = $this->sniffFile('sniff-examples/forbidden_names_function_invocation.php'); }
/** * setUp * * @return void */ public function setUp() { parent::setUp(); $this->_sniffFile = $this->sniffFile('sniff-examples/preg_replace_e_modifier.php'); }
/** * setUp * * @return void */ public function setUp() { parent::setUp(); $this->_sniffFile = $this->sniffFile('sniff-examples/forbidden_break_continue_variable_argument.php'); }
/** * setUp * * @return void */ public function setUp() { parent::setUp(); $this->_sniffFile = $this->sniffFile('sniff-examples/long_arrays.php'); }
/** * setUp * * @return void */ public function setUp() { parent::setUp(); $this->_sniffFile = $this->sniffFile('sniff-examples/removed_extensions.php'); }
/** * setUp * * @return void */ public function setUp() { parent::setUp(); $this->_sniffFile = $this->sniffFile('sniff-examples/call_time_pass_by_reference.php'); }
/** * */ public function setUp() { parent::setUp(); $this->_sniffFileName = 'sniff-examples/short_array.php'; }