parse( $input ); $this->assertEquals( $expected, $observed['xx'], $comment ); } public function parseProvider() { return [ [ '{}', [], 'empty file', ], [ '{"key":"value"}', [ 'key' => 'value' ], 'file with one string', ], [ '{"@metadata":{"authors":["Nike"]},"key":"value2"}', [ 'key' => 'value2' ], '@metadata is ignored', ] ]; } }