X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2FStaticArrayWriterTest.php;h=4bd845d0b99292cd1816f68720ea5dd9c12bf27a;hb=b48174c3a8d57c0467a2968cc8268c93bf55b9d1;hp=276fee3f6c7203cf5f9bb824c83d50b9111576c4;hpb=a97139808acf244936a870fe8bf7ba3667795f3b;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/libs/StaticArrayWriterTest.php b/tests/phpunit/includes/libs/StaticArrayWriterTest.php index 276fee3f6c..4bd845d0b9 100644 --- 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"', + 'nested' => [ 'elements', 'work' ], + 'and' => [ 'these' => 'do too' ], ]; $writer = new StaticArrayWriter(); $actual = $writer->create( $data, "Header\nWith\nNewlines" ); @@ -41,6 +43,13 @@ return [ 'foo' => 'bar', 'baz' => 'rawr', 'they\'re' => '"quoted properly"', + 'nested' => [ + 0 => 'elements', + 1 => 'work', + ], + 'and' => [ + 'these' => 'do too', + ], ]; PHP;