Page MenuHomeWickedGov Phorge

CommentFormatterTestUtils.php
No OneTemporary

Size
419 B
Referenced Files
None
Subscribers
None

CommentFormatterTestUtils.php

<?php
namespace MediaWiki\Tests\Unit\CommentFormatter;
class CommentFormatterTestUtils {
public static function dumpArray( array $a ): string {
$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
Aug 18 2026, 11:00 (5 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cc/3c/024ab3c15083678c01c48f117d3e
Default Alt Text
CommentFormatterTestUtils.php (419 B)

Event Timeline