class_STAssertHelper.inc.php 25.9 KB
<?php
/**
 * @file	STAssertHelper.inc.php
 * @category freeSN
 * @mailto	code [at] netz.coop
 * @version 0.4.200901
 * @link http://netz.coop
 * 
 *  @copyright Copyright by netz.coop e.G. 2015
 *  
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
if (!defined('SIMPLE_TEST')) {
    define('SIMPLE_TEST', '/var/www/php/simpletest/');
}
require_once SIMPLE_TEST . 'autorun.php';

class STAssertHelper extends CheckHelper {

    public static $var_Testdb;
    protected static $var_Testbrowser = false;
    protected static $var_Testxml = false;

    protected function failedTest() {
        $var_num = STTree::$var_numCurWalkAry;
        STTree::$ary_walkFncAssert[] = STTree::$ary_walkFnc[$var_num];
    }

    //
    protected function assertTests($param_ary, $param_output=null) {
        if (!isset($numberOfTestspassed)) {
            $numberOfTestspassed = 0;
        }
        $var_num_current = STTree::$var_numCurWalkAry;
        $array_currentelement = self::$ary_walkFnc[$var_num_current];
        $var_testcase = array('0' => 'DB', '1' => true);
        $var_MCase = $param_ary['return']['cur']['MCase'];
        $var_BC = $param_ary['return']['cur']['BC'];
        $var_MT = $param_ary['return']['cur']['MT'];
        $var_test = $param_ary['return'][$param_ary['return']['cur']['MCase']][$param_ary['return']['cur']['BC']][$param_ary['return']['cur']['MT']]['cur']['MTextID'];
        $testArray = $param_ary['return'][$param_ary['return']['cur']['MCase']][$param_ary['return']['cur']['BC']][$param_ary['return']['cur']['MT']];
        if ($this->ary_testPar['0']['ShowTestarray'] == 'TRUE') {

            $string = "<?php echo '### Testarray: <pre>'; print_r(" . var_export($testArray, true) . "); echo '</pre>';?>";
            $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_Output.php';
            $this->obj_FileTools->fileputs($var_filename, $string, 1);
        }
        if ($param_ary['return']['cur']['MCase'] == 'remove') {
            $testArray = $param_ary['return'][$param_ary['return']['cur']['MCase']][$param_ary['return']['cur']['BC']][$param_ary['return']['cur']['MT']]['testAry'];
            if (!$this->assertEqual($testArray, null, 'CurElement: ' . STTree::$var_numCurWalkAry . $param_output . ', ' . self::$var_Testdb = true)) {
                $var_testcase['1'] = 'Failed';
                self::failedTest();
            }
            $var_test = $param_ary['return'][$param_ary['return']['cur']['MCase']][$param_ary['return']['cur']['BC']][$param_ary['return']['cur']['MT']]['cur']['MTextID'];
            $numberOfTestspassed++;
            TimeTools::fnc_endTime($numberOfTestspassed, $var_testcase, $testArray, false, $param_ary['return']);
            $numberOfTestspassed = 0;
            if ($this->ary_testPar['0']['showTested'] == 'TRUE') {
                D::li('=> End ' . $param_ary['return']['cur']['MCase'] . ': ' . $param_ary['BC'] . ': ' . $param_ary['current'], 1, 1);
            }
            return;
        }
        $testArray = $param_ary['return'][$param_ary['return']['cur']['MCase']][$param_ary['return']['cur']['BC']][$param_ary['return']['cur']['MT']];
        $var_test = $testArray['Formular_Tags'];
        if (isset($testArray['No_Tests'])) {
            $var_noTest = $testArray['No_Tests'];
        }
        if ($testArray['testAry']['TestArray']['C_ST'][0]) {
            $num = count($testArray['testAry']['TestArray']['C_ST']);
            $num_b = count($testArray['SubTree']);
            if ($num != $num_b) {

            }
            for ($i = 0; $i < $num; $i++) {
                $var_test_st[$i] = $testArray['testAry']['TestArray']['C_ST'][$i]['0'];
                $this->num_st++;
            }
        } else {
            $string = "<?php echo '### TestarrayFail: <pre>'; print_r(" . var_export($var_test, true) . "); echo '</pre>';?>";
            $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_FailDB.php';
            $this->obj_FileTools->fileputs($var_filename, $string, 2);
            $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_Output.php';
            echo '<b>Info:</b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a> <br>';
        }
        //                $var_test_a= $testArray['POST'];
        $var_test_a = $testArray['Check'];
        if (!isset($var_noTest)) {
            $var_noTest = 0;
        }
        $num_c = count($var_noTest);
        for ($j = 0; $j < $num_c; $j++) {
            unset($var_test_a[$var_noTest[$j]]);
        }
        for ($i = 0; $i < $num; $i++) {
            if ($var_test_st[$i]) {
                $var_test = array_flip($var_test);
                unset($var_test['Start']);
                unset($var_test['End']);
                $var_test = array_flip($var_test);
                if (isset($this->ary_testPar['0']['showTested']) && $this->ary_testPar['0']['showTested'] == 'TRUE') {
                    D::li('=> End ' . $param_ary['return']['cur']['MCase'] . ': ' . $param_ary['BC'] . ': ' . $param_ary['current'], 1, 1);
                }
                foreach ($var_test as $tag) {
                    if ($tag != 'Url' && $tag != 'Avatar') {
                        if (!$this->assertEqual($var_test_a[$tag], $var_test_st[$i][$tag], 'CurElement: ' . STTree::$var_numCurWalkAry . $param_output . ', ' . $tag . self::$var_Testdb = TRUE)) {
                            $string = "<?php echo '### '.$tag.'-Fail: ';?>";
                            $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_FailDB.php';
                            $this->obj_FileTools->fileputs($var_filename, $string, 2);
                            $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_Output.php';
                            echo '<b>Info:</b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a> <br>';
                            $var_testcase['1'] = 'Failed';
                        }

                        $numberOfTestspassed++;
                    }
                }
                if ($this->ary_testPar['0']['AssertRights'] != 'FALSE') {
                    $var_currentElement = STTree::$var_numCurWalkAry;
                    $array_currentelementConf = STTree::$ary_walkCnf[$var_currentElement];

                    if (!$this->assertEqual($var_test_st[$i]['WriteRight'], true, 'CurElement: ' . STTree::$var_numCurWalkAry . ', ' . self::$var_Testdb = true . $var_MCase . ' ' . $var_BC . ' ' . $var_MT . ' WriteRight != 1 ' . $param_output)) {
                        $string = "<?php echo '### WriteRight from DB -Fail: ';?>";
                        $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_FailDB.php';
                        $this->obj_FileTools->fileputs($var_filename, $string, 2);
                        $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_Output.php';
                        echo '<b>Info:</b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a> <br>';
                        $var_testcase['1'] = 'Failed';
                        self::failedTest();
                    };
                    if (!in_array('SubProfileManagement', $array_currentelement)) {
//						if(!$this->assertEqual($var_test_st[$i]['ReadRight'],'1','CurElement: '.STTree::$var_numCurWalkAry.', '.self::$var_Testdb=TRUE.$var_MCase.' '.$var_BC.' '.$var_MT.' ReadRight != 1 '.$param_output)) {
                        if (!$this->assertEqual($var_test_st[$i]['ReadRight'], true, 'CurElement: ' . STTree::$var_numCurWalkAry . ', ' . self::$var_Testdb = true . $var_MCase . ' ' . $var_BC . ' ' . $var_MT . ' ReadRight != 1 ' . $param_output)) {
                            $string = "<?php echo '### ReadRight from DB -Fail: ';?>";
                            $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_FailDB.php';
                            $this->obj_FileTools->fileputs($var_filename, $string, 2);
                            $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_Output.php';
                            echo '<b>Info:</b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a> <br>';
                            $var_testcase['1'] = 'Failed';
                            self::failedTest();
                        }
                        $numberOfTestspassed++;
                        if ($array_currentelementConf['WriteNickName'] != null) {
                            if (!$this->assertNotEqual($var_test_st[$i]['AuthWriteListID'], 0, 'CurElement: ' . STTree::$var_numCurWalkAry . ', ' . self::$var_Testdb = true . $var_MCase . ' ' . $var_BC . ' ' . $var_MT . ' AuthWriteListID == 0 ' . $param_output)) {
                                $string = "<?php echo '### WriteNickName from DB -Fail: ';?>";
                                $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_FailDB.php';
                                $this->obj_FileTools->fileputs($var_filename, $string, 2);
                                $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_Output.php';
                                echo '<b>Info:</b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a> <br>';
                                $var_testcase['1'] = 'Failed';
                                self::failedTest();
                            }
                            $numberOfTestspassed++;
                            $array_writenicks = explode(',', $array_currentelementConf['WriteNickName']);
                            foreach ($array_writenicks as $var_value) {
                                if (!$this->assertTrue(is_array($var_test_st[$i]['WriteProfiles']['ProfileID']), 'CurElement: ' . STTree::$var_numCurWalkAry . ', ' . self::$var_Testdb = true . $var_MCase . ' ' . $var_BC . ' ' . $var_MT . ' RWriteNickName: No Profile IDs at all!' . $param_output)) {
                                    if (is_array($var_test_st[$i]['WriteProfiles']['ProfileID']) && !$this->assertTrue(in_array($var_value, $var_test_st[$i]['WriteProfiles']['ProfileID']), self::$var_Testdb = true . $var_MCase . ' ' . $var_BC . ' ' . $var_MT . '  WriteNickName  Profile ID: ' . $var_value . ' is not in DB!' . $param_output)) {
                                        $string = "<?php echo '### WriteProfiles ProfileID from DB -Fail: ';?>";
                                        $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_FailDB.php';
                                        $this->obj_FileTools->fileputs($var_filename, $string, 2);
                                        $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_Output.php';
                                        echo '<b>Info:</b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a><br> ';
                                        $var_testcase['1'] = 'Failed';
                                        self::failedTest();
                                    }
                                }
                                $numberOfTestspassed++;
                            }
                        } else {
                            //								if(!$this->assertEqual($var_test_st[$i]['AuthWriteListID'],0,self::$var_Testdb=TRUE.$var_MCase.' '.$var_BC.' '.$var_MT.' AuthWriteListID != 0 !')){
                            //									D::show($array_currentelementConf['WriteNickName'],'$array_currentelementConf[WriteNickName]',1,1);
                            //									D::show($var_test_st[$i]['AuthWriteListID'],'AuthWriteListID',1,1);
                            //									D::show($array_currentelement,'$array_currentelement',1,1);
                            //									$var_testcase['1']='Failed';
                            //									self::failedTest();
                            //									D::show($param_ary['return'],'$param_ary['return']',1,1);
                            //			//						D::show($param_ary['return'],'$param_ary['return']',1,1);
                            //								}
                            //							$numberOfTestspassed++;
                        }
                        if ($array_currentelementConf['ReadNickName'] != null) {
                            if (!$this->assertNotEqual($var_test_st[$i]['AuthReadListID'], 0, 'CurElement: ' . STTree::$var_numCurWalkAry . ', ' . self::$var_Testdb = true . $var_MCase . ' ' . $var_BC . ' ' . $var_MT . ' AuthReadListID == 0 ' . $param_output)) {
                                $string = "<?php echo '### AuthReadListID =0 !!! in DB -Fail: ';?>";
                                $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_FailDB.php';
                                $this->obj_FileTools->fileputs($var_filename, $string, 2);
                                $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_Output.php';
                                echo '<b>Info:</b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a> <br>';
                                $var_testcase['1'] = 'Failed';
                                self::failedTest();
                            }
                            $numberOfTestspassed++;
                            $array_readnicks = explode(',', $array_currentelementConf['ReadNickName']);
                            foreach ($array_readnicks as $var_value) {
                                if (!$this->assertTrue(is_array($var_test_st[$i]['ReadProfiles']['ProfileID']), 'CurElement: ' . STTree::$var_numCurWalkAry . ', ' . self::$var_Testdb = true . $var_MCase . ' ' . $var_BC . ' ' . $var_MT . ' ReadNickName: No Profile IDs at all!' . $param_output)) {
                                    if (is_array($var_value, $var_test_st[$i]['ReadProfiles']['ProfileID']) && !$this->assertTrue(in_array($var_value, $var_test_st[$i]['ReadProfiles']['ProfileID']), self::$var_Testdb = true . $var_MCase . ' ' . $var_BC . ' ' . $var_MT . '  ReadNickName  Profile ID: ' . $var_value . ' is not in DB!' . $param_output)) {
                                        $string = "<?php echo '### ReadProfiles ProfileID from DB -Fail: ';?>";
                                        $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_FailDB.php';
                                        $this->obj_FileTools->fileputs($var_filename, $string, 2);
                                        $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_Output.php';
                                        echo '<b>Info:</b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a> <br>';
                                        $var_testcase['1'] = 'Failed';
                                        self::failedTest();
                                    }
                                }
                                $numberOfTestspassed++;
                            }
                        } else {
                            //							if(!$this->assertEqual($var_test_st[$i]['AuthReadListID'],0,self::$var_Testdb=TRUE.$var_MCase.' '.$var_BC.' '.$var_MT.' AuthReadListID != 0 !')){
                            //								D::show($param_ary['return'],'$param_ary['return']',1,1);
                            //								$var_testcase['1']='Failed';
                            //								self::failedTest();
                            //							}
                            //                            $numberOfTestspassed++;
                        }
                    } else {
                        
                    }
                }
                TimeTools::fnc_endTime($numberOfTestspassed, $var_testcase, $testArray, false, $param_ary['return']);
                $numberOfTestspassed = 0;
            }
        }
    }

    protected function assertDesignfromDB($param_ary, $param_output=null) {
        $numberOfTestspassed = '0';
        $testArray = $param_ary['return'][$param_ary['return']['cur']['MCase']][$param_ary['return']['cur']['BC']][$param_ary['return']['cur']['MT']]['testAry'];
        $ary_Design = $testArray['TestArray']['C_ST']['0']['0']['Design'];
        $var_num_current = STTree::$var_numCurWalkAry;
        $array_currentelement = self::$ary_walkFnc[$var_num_current];
        $var_testcase = array('0' => 'DB', '1' => true);
        $var_MCase = $param_ary['return']['cur']['MCase'];
        $var_BC = $param_ary['return']['cur']['BC'];
        $var_MT = $param_ary['return']['cur']['MT'];
        $var_numkeys = count($ary_Design);
        if ($param_ary['url']['1'] !== 'SubProfileManagement') {
            if ($var_numkeys > '3') {
                foreach ($ary_Design as $tag => $value) {
                    $var_tmpdb = $ary_Design[$tag]['DB'];
                    $var_tmpconf = $ary_Design[$tag]['Conf'];
                    if (!$this->assertEqual($var_tmpdb, $var_tmpconf, 'CurElement: ' . STTree::$var_numCurWalkAry . ', ' . $tag . $param_output)) {
                        $string = "<?php echo '### Design from DB and conf_ST.php is different! -Fail: ';?>";
                        $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_FailDB.php';
                        $this->obj_FileTools->fileputs($var_filename, $string, 2);
                        $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_Output.php';
                        echo '<b>Info:</b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a> <br>';
                        $var_testcase['1'] = 'Failed';
                    }
                    $numberOfTestspassed++;
                }
            } else {
                $var_false = false;
                if (!$this->assertTrue($var_false, 'CurElement: ' . STTree::$var_numCurWalkAry . ', ' . self::$var_Testdb = true . $var_MCase . ' ' . $var_BC . ' ' . $var_MT . ' Design: Not enough Testobjects in Design!!!! only:' . $var_numkeys . ' !' . $param_output)) {
                    $string = "<?php echo '###Design: Not enough Testobjects in Design!!!! ';?>";
                    $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_FailDB.php';
                    $this->obj_FileTools->fileputs($var_filename, $string, 2);
                    $var_filename = STTree::$var_numCurWalkAry . '_' . $param_ary['return']['cur']['MCase'] . '_Output.php';
                    echo '<b>Info:</b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a> <br>';
                    $var_testcase['1'] = 'Failed';
                    self::failedTest();
                }
            }
        }


        TimeTools::fnc_endTime($numberOfTestspassed, $var_testcase, $testArray, false, $param_ary['return']);
        $numberOfTestspassed = 0;
    }

    protected function assertRegExpTests($param_testarray, $param_rtn, $param_chkforbidden = null, $param_output=null) {
        $var_testcase = array('0' => 'RegExp', '1' => true);
        if (isset($param_rtn[$param_rtn['cur']['MCase']][$param_rtn['cur']['BC']][$param_rtn['cur']['MT']]['testAry'])) {
            $var_test = $param_rtn[$param_rtn['cur']['MCase']][$param_rtn['cur']['BC']][$param_rtn['cur']['MT']]['testAry'];
        } else {
            $var_test = '';
        }

        $array_keys = array_keys($param_testarray);
        unset($array_keys['WriteNickName']);
        unset($array_keys['ReadNickName']);
        unset($param_testarray['PartOfID']);
        foreach ($array_keys as $akeys) {
            unset($param_testarray['WriteNickName']);
            unset($param_testarray['ReadNickName']);
            unset($param_testarray['PartOfID']);
            unset($param_testarray['Cycle']);
            unset($param_testarray['losp_classname']);
//                unset($param_testarray['losp_classname']);
//                unset($param_testarray['AuthorProfileID']);
            if (isset($param_testarray[$akeys]) && is_array($param_testarray[$akeys])) {
                foreach ($param_testarray[$akeys] as $var_key => $var_value) {
                    if ($param_chkforbidden === null && !$this->assertEqual($var_key, $param_testarray[$akeys][$var_key]['0'], 'CurElement: ' . STTree::$var_numCurWalkAry . ', RegEXP: ' . $param_rtn['cur']['MCase'] . ' ' . $param_rtn['cur']['BC'] . ' ' . $param_rtn['cur']['MT'] . $param_output)) {
                        $var_testcase['1'] = 'Failed';
                        $param_rtn[$param_rtn['cur']['MCase']][$param_rtn['cur']['BC']][$param_rtn['cur']['MT']]['testRegExp'] = $param_testarray;
                        $string = "<?php echo '### RegExp: <pre>'; print_r(" . var_export($param_testarray, true) . "); echo '</pre>';?>";
                        $var_filename = STTree::$var_numCurWalkAry . '_' . $param_rtn['cur']['MCase'] . '_FailRegExp.php';
                        $this->obj_FileTools->fileputs($var_filename, $string, 2);
                        $var_filename = STTree::$var_numCurWalkAry . '_' . $param_rtn['cur']['MCase'] . '_Output.php';
                        echo '<b>Info:</b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a> <br>';
                        self::failedTest();
                    } else if ($param_chkforbidden === '1' && !$this->assertNotEqual($var_key, $param_testarray[$akeys][$var_key]['0'], 'RegEXP Search for Failures: ' . $param_rtn['cur']['MCase'] . ' ' . $param_rtn['cur']['BC'] . ' ' . $param_rtn['cur']['MT'] . $param_output)) {
                        $var_testcase['1'] = 'Failed';
                        $param_rtn[$param_rtn['cur']['MCase']][$param_rtn['cur']['BC']][$param_rtn['cur']['MT']]['testRegExp'] = $param_testarray;
                        $string = "<?php echo '### RegExp: <pre>'; print_r(" . var_export($param_testarray, true) . "); echo '</pre>';?>";
                        $var_filename = STTree::$var_numCurWalkAry . '_' . $param_rtn['cur']['MCase'] . '_FailRegExpSearchForFailures.php';
                        $this->obj_FileTools->fileputs($var_filename, $string, 2);
                        $var_filename = STTree::$var_numCurWalkAry . '_' . $param_rtn['cur']['MCase'] . '_Output.php';
                        echo '<b>Info:</b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a> <br>';
                        self::failedTest();
                    }
                    if (!isset($numberOfTestspassed)) {
                        $numberOfTestspassed = '0';
                    }
                    $numberOfTestspassed++;
                }
            }
        }
        $param_rtn[$param_rtn['cur']['MCase']][$param_rtn['cur']['BC']][$param_rtn['cur']['MT']]['testRegExp'] = $param_testarray;
        TimeTools::fnc_endTime($numberOfTestspassed, $var_testcase, $var_test, false, $param_rtn);
        $numberOfTestspassed = 0;
        return $param_rtn;
    }

    protected function assertRegExpTestsSmall($param_search, $param_site, $param_Walk_Cur_Element, $param_which=null, $param_chkforbidden = null, $param_output=null) {
        $var_testcase = array('1' => 'ExtrasRegExp: ' . $param_which, '1' => true);
        $array_keys = array_keys($param_search);
        foreach ($array_keys as $akeys) {
            if (is_array($param_search[$akeys])) {
                foreach ($param_search[$akeys] as $var_key => $var_value) {
                    if ($param_chkforbidden === null && !$this->assertEqual($var_key, $param_search[$akeys][$var_key]['0'], 'CurElement: ' . $param_Walk_Cur_Element . ', RegEXP: ' . $param_which . $param_output)) {
                        $string = "<?php echo '### RegExp: " . $param_which . " <pre>'; print_r(" . var_export($param_search, true) . "); echo '</pre>'; ?>"; //  echo '".$param_site."';
                        $var_filename = $param_Walk_Cur_Element . '_makeNew_FailRegExp.php';
                        $this->obj_FileTools->fileputs($var_filename, $string, 2);
                        $var_filename = $param_Walk_Cur_Element . '_makeNew' . '_Output.php';
                        echo '<b> Info: </b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a> <br>';
                    } else if ($param_chkforbidden === '1' && !$this->assertNotEqual($var_key, $param_search[$akeys][$var_key]['0'], 'CurElement: ' . $param_Walk_Cur_Element . ', RegEXP: ' . $param_which . $param_output)) {
                        $string = "<?php echo '### RegExp: " . $param_which . " <pre>'; print_r(" . var_export($param_search, true) . "); echo '</pre>'; ?>"; //  echo '".$param_site."';
                        $var_filename = $param_Walk_Cur_Element . '_makeNew_RightsTagCategory_FailRegExpSearchForFailures.php';
                        $this->obj_FileTools->fileputs($var_filename, $string, 2);

                        $var_filename = $param_Walk_Cur_Element . '_makeNew' . '_Output.php';
                        echo '<b> Info: </b> <a href=' . $this->var_filedir . $var_filename . '> ' . $var_filename . '</a> <br>';
                    }
                    $numberOfTestspassed = 0;
                    $numberOfTestspassed++;
                }
            }
        }
        TimeTools::fnc_endTime($numberOfTestspassed, $var_testcase, $param_which, false, '', $param_which);
        $numberOfTestspassed = 0;
//	return $param_rtn;
    }

}
?>