Debian Codegraph @

tests/phpunit/unit/includes/CommentFormatter/CommentFormatterTestUtils.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Tests\Unit\CommentFormatter;
4
5 class CommentFormatterTestUtils {
6 public static function dumpArray( $a ) {
7 $s = '';
8 foreach ( $a as $k => $v ) {
9 if ( $v === null ) {
10 continue;
11 }
12 if ( $s !== '' ) {
13 $s .= ', ';
14 }
15 if ( $v === true ) {
16 $s .= $k;
17 } elseif ( $v === false ) {
18 $s .= "!$k";
19 } else {
20 $s .= "$k=$v";
21 }
22 }
23 return $s;
24 }
25 }