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