dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Remove unused function: isStructuredFilterUiEnabledByDefault"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
StaticArrayWriterTest.php
diff --git
a/tests/phpunit/includes/libs/StaticArrayWriterTest.php
b/tests/phpunit/includes/libs/StaticArrayWriterTest.php
index
276fee3
..
4bd845d
100644
(file)
--- a/
tests/phpunit/includes/libs/StaticArrayWriterTest.php
+++ b/
tests/phpunit/includes/libs/StaticArrayWriterTest.php
@@
-29,6
+29,8
@@
class StaticArrayWriterTest extends PHPUnit\Framework\TestCase {
'foo' => 'bar',
'baz' => 'rawr',
"they're" => '"quoted properly"',
'foo' => 'bar',
'baz' => 'rawr',
"they're" => '"quoted properly"',
+ 'nested' => [ 'elements', 'work' ],
+ 'and' => [ 'these' => 'do too' ],
];
$writer = new StaticArrayWriter();
$actual = $writer->create( $data, "Header\nWith\nNewlines" );
];
$writer = new StaticArrayWriter();
$actual = $writer->create( $data, "Header\nWith\nNewlines" );
@@
-41,6
+43,13
@@
return [
'foo' => 'bar',
'baz' => 'rawr',
'they\'re' => '"quoted properly"',
'foo' => 'bar',
'baz' => 'rawr',
'they\'re' => '"quoted properly"',
+ 'nested' => [
+ 0 => 'elements',
+ 1 => 'work',
+ ],
+ 'and' => [
+ 'these' => 'do too',
+ ],
];
PHP;
];
PHP;