class QueryAllSpecialPagesTest extends MediaWikiTestCase {
/** List query pages that can not be tested automatically */
- protected $manualTest = array(
+ protected $manualTest = [
'LinkSearchPage'
- );
+ ];
/**
* Pages whose query use the same DB table more than once.
* which does not support reopening a temporary table. See upstream bug:
* http://bugs.mysql.com/bug.php?id=10327
*/
- protected $reopensTempTable = array(
+ protected $reopensTempTable = [
'BrokenRedirects',
- );
+ ];
/**
* Initialize all query page objects
global $wgDBtype;
foreach ( $this->queryPages as $page ) {
-
// With MySQL, skips special pages reopening a temporary table
// See http://bugs.mysql.com/bug.php?id=10327
if (
$wgDBtype === 'mysql'
&& in_array( $page->getName(), $this->reopensTempTable )
) {
- $this->markTestSkipped( "SQL query for page {$page->getName()} can not be tested on MySQL backend (it reopens a temporary table)" );
+ $this->markTestSkipped( "SQL query for page {$page->getName()} "
+ . "can not be tested on MySQL backend (it reopens a temporary table)" );
continue;
}