public function __construct( $testName, array $opts = [] ) {
$this->testName = $testName;
- $this->profiler = new ProfilerStub( [] );
+ $this->profiler = null;
$this->trxProfiler = new TransactionProfiler();
$this->cliMode = $opts['cliMode'] ?? true;
$this->connLogger = new \Psr\Log\NullLogger();
// Handle some internal calls from the Database class
$check = $fname;
- if ( preg_match( '/^Wikimedia\\\\Rdbms\\\\Database::query \((.+)\)$/', $fname, $m ) ) {
+ if ( preg_match(
+ '/^Wikimedia\\\\Rdbms\\\\Database::(?:query|beginIfImplied) \((.+)\)$/',
+ $fname,
+ $m
+ ) ) {
$check = $m[1];
}
// Redeclare parent method to make it public
public function nativeReplace( $table, $rows, $fname ) {
- return parent::nativeReplace( $table, $rows, $fname );
+ parent::nativeReplace( $table, $rows, $fname );
}
function getType() {