private function _checkSwitchNeedDefault() {
		if ($this->_isActive('switchNeedDefault')) {
			if (!$this->statementStack->getCurrentStackItem()->switchHasDefault) {
				// Direct call to reporter to include a custom line number.
				$this->_writeError('switchNeedDefault', $this->_getMessage('SWITCH_DEFAULT'), $this->_switchStartLine, $this->_config->getTestLevel('switchNeedDefault'));
			}
		}
	}
private function _checkSwitchNeedDefault() {
		if ($this->_isActive('switchNeedDefault')) {
			if (!$this->statementStack->getCurrentStackItem()->switchHasDefault) {
				// Direct call to reporter to include a custom line number.
				$this->_writeError('switchNeedDefault', $this->_getMessage('SWITCH_DEFAULT'), $this->_switchStartLine, $this->_config->getTestLevel('switchNeedDefault'));
			}
		}
	}
private function _checkSwitchNeedDefault ( ) { if ( $ this -> _isActive ( 'switchNeedDefault' ) ) { if ( ! $ this -> statementStack -> getCurrentStackItem ( ) -> switchHasDefault ) { // Direct call to reporter to include a custom line number. $ this -> _writeError ( 'switchNeedDefault' , $ this -> _getMessage ( 'SWITCH_DEFAULT' ) , $ this -> _switchStartLine , $ this -> _config -> getTestLevel ( 'switchNeedDefault' ) ) ; } } }
Check if the default case of a switch statement is present.

This function is launched at the end of switch/case.
Check if the default case of a switch statement is present .