Example #1
0
\t}
\t.openlink A:link  {text-decoration: none; color: black;}
\t.openlink A:visited  {text-decoration: none; color: black;}
\t.openlink A:active  {text-decoration: none; color: black;}
\t.openlink A:hover  {text-decoration: underline; color: red;}
\t.witherror  {font-weight: bold;}
\t\t\t</style>
\t\t</head>
\t\t<body>
\t\t<h1>Типограф Евгения Муравьёва. Автотесты.</h1>
\t<br>
HTML;
    if ($_GET['run']) {
        $list = array();
        if ($_GET['run'] == "all") {
            $list = FS::list_only_files("../tests/", '/^test\\.[0-9a-z\\.\\-_]+\\.php$/i');
        } else {
            preg_match("/[a-z0-9\\.\\-_]+/i", $_GET['run'], $m);
            $f = $m[0];
            if (file_exists("../tests/test.{$f}.php")) {
                $list[] = "test.{$f}.php";
            }
        }
        $type = $_GET['run'] == "all" ? "полное" : "только группы " . $_GET['run'];
        echo <<<HTML
\t\tТестирование <b>{$type}</b>. <span style="display:none" id="results"></span>
\t\t<br>
\t\t<ul style="list-style: none">
HTML;
        if (count($list) > 0) {
            $tester = new EMTTester();