public static function provideGetWikiTextAndHtml() {
$testCases = array();
- $testCases[ 'GoodStatus' ] = array(
+ $testCases['GoodStatus'] = array(
new Status(),
"Internal error: Status::getWikiText called for a good result, this is incorrect\n",
"<p>Internal error: Status::getWikiText called for a good result, this is incorrect\n</p>",
$status = new Status();
$status->ok = false;
- $testCases[ 'GoodButNoError' ] = array(
+ $testCases['GoodButNoError'] = array(
$status,
"Internal error: Status::getWikiText: Invalid result object: no error text but not OK\n",
"<p>Internal error: Status::getWikiText: Invalid result object: no error text but not OK\n</p>",
$status = new Status();
$status->warning( 'fooBar!' );
- $testCases[ '1StringWarning' ] = array(
+ $testCases['1StringWarning'] = array(
$status,
"<fooBar!>",
"<p><fooBar!>\n</p>",
$status = new Status();
$status->warning( 'fooBar!' );
$status->warning( 'fooBar2!' );
- $testCases[ '2StringWarnings' ] = array(
+ $testCases['2StringWarnings'] = array(
$status,
"* <fooBar!>\n* <fooBar2!>\n",
"<ul><li> <fooBar!></li>\n<li> <fooBar2!></li></ul>\n",
$status = new Status();
$status->warning( new Message( 'fooBar!', array( 'foo', 'bar' ) ) );
- $testCases[ '1MessageWarning' ] = array(
+ $testCases['1MessageWarning'] = array(
$status,
"<fooBar!>",
"<p><fooBar!>\n</p>",
$status = new Status();
$status->warning( new Message( 'fooBar!', array( 'foo', 'bar' ) ) );
$status->warning( new Message( 'fooBar2!' ) );
- $testCases[ '2MessageWarnings' ] = array(
+ $testCases['2MessageWarnings'] = array(
$status,
"* <fooBar!>\n* <fooBar2!>\n",
"<ul><li> <fooBar!></li>\n<li> <fooBar2!></li></ul>\n",
public static function provideGetMessage() {
$testCases = array();
- $testCases[ 'GoodStatus' ] = array(
+ $testCases['GoodStatus'] = array(
new Status(),
array( "Status::getMessage called for a good result, this is incorrect\n" ),
'internalerror_info'
$status = new Status();
$status->ok = false;
- $testCases[ 'GoodButNoError' ] = array(
+ $testCases['GoodButNoError'] = array(
$status,
array( "Status::getMessage: Invalid result object: no error text but not OK\n" ),
'internalerror_info'
$status = new Status();
$status->warning( 'fooBar!' );
- $testCases[ '1StringWarning' ] = array(
+ $testCases['1StringWarning'] = array(
$status,
array(),
'fooBar!'
$status = new Status();
$status->warning( new Message( 'fooBar!', array( 'foo', 'bar' ) ) );
- $testCases[ '1MessageWarning' ] = array(
+ $testCases['1MessageWarning'] = array(
$status,
array( 'foo', 'bar' ),
'fooBar!'
$status = new Status();
$status->warning( new Message( 'fooBar!', array( 'foo', 'bar' ) ) );
$status->warning( new Message( 'fooBar2!' ) );
- $testCases[ '2MessageWarnings' ] = array(
+ $testCases['2MessageWarnings'] = array(
$status,
array( new Message( 'fooBar!', array( 'foo', 'bar' ) ), new Message( 'fooBar2!' ) ),
"* \$1\n* \$2"