Merge "Skip ApiFormatWddxTest under HHVM"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 18 Dec 2014 17:06:25 +0000 (17:06 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 18 Dec 2014 17:06:25 +0000 (17:06 +0000)
tests/phpunit/includes/api/format/ApiFormatWddxTest.php

index 5170856..c00545f 100644 (file)
@@ -13,6 +13,13 @@ class ApiFormatWddxTest extends ApiFormatTestBase {
                        $this->markTestSkipped( "Function 'wddx_deserialize' not exist, skipping." );
                }
 
+               if ( wfIsHHVM() && false === strpos( wddx_serialize_value( "Test for &" ), '&amp;' ) ) {
+                       # Some version of HHVM fails to escape the ampersand
+                       #
+                       # https://phabricator.wikimedia.org/T75531
+                       $this->markTestSkipped( "wddx_deserialize is bugged under this version of HHVM" );
+               }
+
                $data = $this->apiRequest( 'wddx', array( 'action' => 'query', 'meta' => 'siteinfo' ) );
 
                $this->assertInternalType( 'array', wddx_deserialize( $data ) );