Page MenuHomeWickedGov Phorge

CommentFormatterTestUtils.php
No OneTemporary

Size
405 B
Referenced Files
None
Subscribers
None

CommentFormatterTestUtils.php

<?php
namespace MediaWiki\Tests\Unit\CommentFormatter;
class CommentFormatterTestUtils {
public static function dumpArray( $a ) {
$s = '';
foreach ( $a as $k => $v ) {
if ( $v === null ) {
continue;
}
if ( $s !== '' ) {
$s .= ', ';
}
if ( $v === true ) {
$s .= $k;
} elseif ( $v === false ) {
$s .= "!$k";
} else {
$s .= "$k=$v";
}
}
return $s;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 19:55 (3 d, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fc/51/bc3f5363eba7b4af352c0ce9bf91
Default Alt Text
CommentFormatterTestUtils.php (405 B)

Event Timeline