Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
wiki.bernardino.org /
tests /
parser /
Delete
Unzip
Name
Size
Permission
Date
Action
preprocess
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
DbTestPreviewer.php
6.2
KB
-rw-r--r--
2016-11-28 20:20
DbTestRecorder.php
2.28
KB
-rw-r--r--
2016-11-28 20:20
DjVuSupport.php
1.71
KB
-rw-r--r--
2016-11-28 20:20
MultiTestRecorder.php
1.26
KB
-rw-r--r--
2016-11-28 20:20
ParserTestParserHook.php
2.14
KB
-rw-r--r--
2016-11-28 20:20
ParserTestPrinter.php
8.26
KB
-rw-r--r--
2016-11-28 20:20
ParserTestResult.php
890
B
-rw-r--r--
2016-11-28 20:20
ParserTestResultNormalizer.php
2.49
KB
-rw-r--r--
2016-11-28 20:20
ParserTestRunner.php
46.14
KB
-rw-r--r--
2016-11-28 20:20
PhpunitTestRecorder.php
325
B
-rw-r--r--
2016-11-28 20:20
README
362
B
-rw-r--r--
2016-11-28 20:20
TestFileReader.php
8.35
KB
-rw-r--r--
2016-11-28 20:20
TestRecorder.php
2.19
KB
-rw-r--r--
2016-11-28 20:20
TidySupport.php
2.58
KB
-rw-r--r--
2016-11-28 20:20
extraParserTests.txt
1.21
KB
-rw-r--r--
2016-11-28 20:20
fuzzTest.php
4.91
KB
-rw-r--r--
2016-11-28 20:20
parserTest.inc
33.83
KB
-rw-r--r--
2012-01-03 18:02
parserTests.php
6.98
KB
-rw-r--r--
2016-11-28 20:20
parserTests.txt
762.31
KB
-rw-r--r--
2016-11-28 20:20
parserTestsParserHook.php
1.32
KB
-rw-r--r--
2011-02-09 18:36
parserTestsStaticParserHook.php
1.9
KB
-rw-r--r--
2011-06-17 18:05
Save
Rename
<?php /** * 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 2 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, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * * @file * @ingroup Testing */ class DbTestRecorder extends TestRecorder { public $version; private $db; public function __construct( IDatabase $db ) { $this->db = $db; } /** * Set up result recording; insert a record for the run with the date * and all that fun stuff */ function start() { $this->db->begin( __METHOD__ ); if ( !$this->db->tableExists( 'testrun' ) || !$this->db->tableExists( 'testitem' ) ) { print "WARNING> `testrun` table not found in database. Trying to create table.\n"; $this->db->sourceFile( $this->db->patchPath( 'patch-testrun.sql' ) ); echo "OK, resuming.\n"; } $this->db->insert( 'testrun', [ 'tr_date' => $this->db->timestamp(), 'tr_mw_version' => $this->version, 'tr_php_version' => PHP_VERSION, 'tr_db_version' => $this->db->getServerVersion(), 'tr_uname' => php_uname() ], __METHOD__ ); if ( $this->db->getType() === 'postgres' ) { $this->curRun = $this->db->currentSequenceValue( 'testrun_id_seq' ); } else { $this->curRun = $this->db->insertId(); } } /** * Record an individual test item's success or failure to the db * * @param array $test * @param ParserTestResult $result */ function record( $test, ParserTestResult $result ) { $this->db->insert( 'testitem', [ 'ti_run' => $this->curRun, 'ti_name' => $test['desc'], 'ti_success' => $result->isSuccess() ? 1 : 0, ], __METHOD__ ); } /** * Commit transaction and clean up for result recording */ function end() { $this->db->commit( __METHOD__ ); } }