wiki.techinc.nl/tests/phpunit/includes/api/format/ApiFormatPhpTest.php

21 lines
377 B
PHP
Raw Normal View History

2011-01-03 21:36:49 +00:00
<?php
/**
* @group API
* @group Database
* @group medium
2011-01-03 21:36:49 +00:00
*/
class ApiFormatPhpTest extends ApiFormatTestBase {
function testValidPhpSyntax() {
2011-01-03 21:36:49 +00:00
$data = $this->apiRequest( 'php', array( 'action' => 'query', 'meta' => 'siteinfo' ) );
$this->assertInternalType( 'array', unserialize( $data ) );
$this->assertGreaterThan( 0, count( (array) $data ) );
}
}