summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/api/format/ApiFormatWddxTest.php
blob: d075f5477d27123947f9d39a7a85fb404f2e5bb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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 ) );
	}
}