private function _checkConstantNaming($text) {
		if ($this->_isActive('constantNaming')) {
			$text = ltrim($text, "\"'"); // just in case, remove the quotes
			$text = rtrim($text, "\"'");
			$ret = preg_match($this->_config->getTestRegExp('constantNaming'), $text);
			if (!$ret) {
				$msg = $this->_getMessage('CONSTANT_NAMING', $text, $this->_config->getTestRegExp('constantNaming'));
				$this->_writeError('constantNaming', $msg);
			}
		}
		$this->_constantDef = false;
	}
private function _checkConstantNaming($text) {
		if ($this->_isActive('constantNaming')) {
			$text = ltrim($text, "\"'"); // just in case, remove the quotes
			$text = rtrim($text, "\"'");
			$ret = preg_match($this->_config->getTestRegExp('constantNaming'), $text);
			if (!$ret) {
				$msg = $this->_getMessage('CONSTANT_NAMING', $text, $this->_config->getTestRegExp('constantNaming'));
				$this->_writeError('constantNaming', $msg);
			}
		}
		$this->_constantDef = false;
	}
private function _checkConstantNaming ( $ text ) { if ( $ this -> _isActive ( 'constantNaming' ) ) { $ text = ltrim ( $ text , "\"'" ) ; // just in case, remove the quotes $ text = rtrim ( $ text , "\"'" ) ; $ ret = preg_match ( $ this -> _config -> getTestRegExp ( 'constantNaming' ) , $ text ) ; if ( ! $ ret ) { $ msg = $ this -> _getMessage ( 'CONSTANT_NAMING' , $ text , $ this -> _config -> getTestRegExp ( 'constantNaming' ) ) ; $ this -> _writeError ( 'constantNaming' , $ msg ) ; } } $ this -> _constantDef = false ; }
Checks to see if the constant follows the naming convention.

@param String $text
the string containing the constant.
Checks to see if the constant follows the naming convention .