wiki.techinc.nl/tests/phpunit/includes/api/format/ApiFormatWddxTest.php
Tim Starling aebbe31a82 ApiFormatWddxTest @requires wddx_deserialize
Not the format module, that works fine without it, the test just fails.

Change-Id: I8135bbdbb070485bc3477fce474f36412f7547af
2013-11-05 17:06:23 +11:00

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 ) );
}
}