Make WordPress Core

Changeset 37980


Ignore:
Timestamp:
07/05/2016 09:58:41 PM (8 years ago)
Author:
ocean90
Message:

XML-RPC: Add unit test to verify IXR changes in [37244].

Props aaires.
Fixes #36586.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/xmlrpc/basic.php

    r35366 r37980  
    9494
    9595    }
     96
     97    /**
     98     * @ticket 36586
     99     */
     100    function test_isStruct_on_non_numerically_indexed_array() {
     101        $value  = new IXR_Value( array( '0.0' => 100 ) );
     102
     103        $return  = "<struct>\n";
     104        $return .= "  <member><name>0.0</name><value><int>100</int></value></member>\n";
     105        $return .= "</struct>";
     106
     107        $this->assertXmlStringEqualsXmlString( $return, $value->getXML() );
     108    }
    96109}
Note: See TracChangeset for help on using the changeset viewer.