Not the format module, that works fine without it, the test just fails. Change-Id: I8135bbdbb070485bc3477fce474f36412f7547af
20 lines
451 B
PHP
20 lines
451 B
PHP
<?php
|
|
|
|
/**
|
|
* @group API
|
|
* @group Database
|
|
* @group medium
|
|
* @covers ApiFormatWddx
|
|
*/
|
|
class ApiFormatWddxTest extends ApiFormatTestBase {
|
|
|
|
/**
|
|
* @requires function wddx_deserialize
|
|
*/
|
|
public function testValidSyntax( ) {
|
|
$data = $this->apiRequest( 'wddx', array( 'action' => 'query', 'meta' => 'siteinfo' ) );
|
|
|
|
$this->assertInternalType( 'array', wddx_deserialize( $data ) );
|
|
$this->assertGreaterThan( 0, count( (array)$data ) );
|
|
}
|
|
}
|