54f447a92a7f324dd661bcd27118c36a530eeb97
[lhc/web/wiklou.git] / tests / phpunit / includes / api / format / ApiFormatPhpTest.php
1 <?php
2
3 /**
4 * @group API
5 * @group Database
6 * @group medium
7 * @covers ApiFormatPhp
8 */
9 class ApiFormatPhpTest extends ApiFormatTestBase {
10
11 public function testValidSyntax( ) {
12 $data = $this->apiRequest( 'php', array( 'action' => 'query', 'meta' => 'siteinfo' ) );
13
14 $this->assertInternalType( 'array', unserialize( $data ) );
15 $this->assertGreaterThan( 0, count( (array)$data ) );
16 }
17 }