コード例 #1
0
 /**
  * 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());
 }
コード例 #2
0
 /**
  * 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());
 }
コード例 #3
0
 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->_sniffFile = $this->sniffFile('sniff-examples/removed_hash_algorithms.php');
 }
コード例 #4
0
 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
 }
コード例 #5
0
 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->_sniffFile = $this->sniffFile('sniff-examples/ternary_operator.php');
 }
コード例 #6
0
 /**
  * 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');
 }
コード例 #10
0
 /**
  * setUp
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->_sniffFile = $this->sniffFile('sniff-examples/long_arrays.php');
 }
コード例 #11
0
 /**
  * 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');
 }
コード例 #13
0
 /**
  *
  */
 public function setUp()
 {
     parent::setUp();
     $this->_sniffFileName = 'sniff-examples/short_array.php';
 }