$this->fail( 'Test exception not thrown' );
} catch ( DBTransactionError $ex ) {
$this->assertSame(
- 'Cannot execute query from ' . __METHOD__ . ' while transaction status is ERROR.',
+ 'Cannot execute query from ' . __METHOD__ . ' while transaction status is ERROR',
$ex->getMessage()
);
}
} catch ( DBUnexpectedError $e ) {
$m = __METHOD__;
$this->assertSame(
- "Invalid atomic section ended (got {$m}_X but expected {$m}).",
+ "Invalid atomic section ended (got {$m}_X but expected {$m})",
$e->getMessage()
);
}
$this->fail( 'Expected exception not thrown' );
} catch ( DBUnexpectedError $ex ) {
$this->assertSame(
- 'No atomic section is open (got ' . __METHOD__ . ').',
+ 'No atomic section is open (got ' . __METHOD__ . ')',
$ex->getMessage()
);
}
} catch ( DBUnexpectedError $ex ) {
$this->assertSame(
'Invalid atomic section ended (got ' . __METHOD__ . ' but expected ' .
- __METHOD__ . 'X).',
+ __METHOD__ . 'X)',
$ex->getMessage()
);
}
$this->fail( 'Expected exception not thrown' );
} catch ( DBTransactionError $ex ) {
$this->assertSame(
- 'Cannot execute query from ' . __METHOD__ . ' while transaction status is ERROR.',
+ 'Cannot execute query from ' . __METHOD__ . ' while transaction status is ERROR',
$ex->getMessage()
);
}
$this->fail( 'Expected exception not thrown' );
} catch ( DBUnexpectedError $ex ) {
$this->assertSame(
- 'No atomic section is open (got ' . __METHOD__ . ').',
+ 'No atomic section is open (got ' . __METHOD__ . ')',
$ex->getMessage()
);
}
$this->fail( 'Expected exception not thrown' );
} catch ( DBTransactionError $e ) {
$this->assertEquals(
- 'Cannot execute query from ' . __METHOD__ . ' while transaction status is ERROR.',
+ 'Cannot execute query from ' . __METHOD__ . ' while transaction status is ERROR',
$e->getMessage()
);
}
$this->fail( 'Expected exception not thrown' );
} catch ( DBTransactionError $e ) {
$this->assertEquals(
- 'Cannot execute query from ' . __METHOD__ . ' while transaction status is ERROR.',
+ 'Cannot execute query from ' . __METHOD__ . ' while transaction status is ERROR',
$e->getMessage()
);
}
$this->fail( 'Expected exception not thrown' );
} catch ( DBUnexpectedError $ex ) {
$this->assertSame(
- "Wikimedia\Rdbms\Database::close: transaction is still open (from $fname).",
+ "Wikimedia\Rdbms\Database::close: transaction is still open (from $fname)",
$ex->getMessage()
);
}
} catch ( DBUnexpectedError $ex ) {
$this->assertSame(
'Wikimedia\Rdbms\Database::close: atomic sections ' .
- 'DatabaseSQLTest::testPrematureClose2 are still open.',
+ 'DatabaseSQLTest::testPrematureClose2 are still open',
$ex->getMessage()
);
}
} catch ( DBUnexpectedError $ex ) {
$this->assertSame(
'Wikimedia\Rdbms\Database::close: ' .
- 'mass commit/rollback of peer transaction required (DBO_TRX set).',
+ 'mass commit/rollback of peer transaction required (DBO_TRX set)',
$ex->getMessage()
);
}