2013-10-23 15:10:02 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @group API
|
|
|
|
|
* @group Database
|
|
|
|
|
* @group medium
|
|
|
|
|
* @covers ApiFormatWddx
|
|
|
|
|
*/
|
|
|
|
|
class ApiFormatWddxTest extends ApiFormatTestBase {
|
|
|
|
|
|
2013-11-05 06:06:23 +00:00
|
|
|
/**
|
|
|
|
|
* @requires function wddx_deserialize
|
|
|
|
|
*/
|
2013-10-23 15:10:02 +00:00
|
|
|
public function testValidSyntax( ) {
|
|
|
|
|
$data = $this->apiRequest( 'wddx', array( 'action' => 'query', 'meta' => 'siteinfo' ) );
|
|
|
|
|
|
|
|
|
|
$this->assertInternalType( 'array', wddx_deserialize( $data ) );
|
|
|
|
|
$this->assertGreaterThan( 0, count( (array)$data ) );
|
|
|
|
|
}
|
|
|
|
|
}
|