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