diff --git a/tests/phpunit/tests/xmlrpc/basic.php b/tests/phpunit/tests/xmlrpc/basic.php index abe9e69eb6..bbbcbd7d5d 100644 --- a/tests/phpunit/tests/xmlrpc/basic.php +++ b/tests/phpunit/tests/xmlrpc/basic.php @@ -93,4 +93,17 @@ class Tests_XMLRPC_Basic extends WP_XMLRPC_UnitTestCase { $this->assertArrayHasKey( 'faultCode', $result[2] ); } -} \ No newline at end of file + + /** + * @ticket 36586 + */ + function test_isStruct_on_non_numerically_indexed_array() { + $value = new IXR_Value( array( '0.0' => 100 ) ); + + $return = "\n"; + $return .= " 0.0100\n"; + $return .= ""; + + $this->assertXmlStringEqualsXmlString( $return, $value->getXML() ); + } +}