    private function registerTestingScripts () {
        if (YII_UNIT_TESTING) {
//            $this->registerScriptFile (
//                $baseUrl.'/js/qunit/qunit-1.15.0.js', CClientScript::POS_HEAD);
//            $this->registerCssFile ($baseUrl.'/js/qunit/qunit-1.15.0.css');
            Yii::app()->clientScript->registerScript('unitTestingErrorHandler',"
            ;(function () {
                if (typeof x2 === 'undefined') return;
                if (x2.UNIT_TESTING) {
                    var oldErrorHandler = window.onerror;
                    window.onerror = function (errorMessage, url, lineNumber) {
                        $('body').attr (
                            'x2-js-error', 'Javascript Error: ' + url + ': ' + lineNumber + ': ' +
                                errorMessage);

                        if (oldErrorHandler) return oldErrorHandler (errorMessage, url, lineNumber);
                        return false;
                    };
                }
            }) ();
            ", self::POS_HEAD);
        }
    }
The product receives input or data, but it does
        not validate or incorrectly validates that the input has the
        properties that are required to process the data safely and
        correctly.