TitleTest: Break secure and split test into two tests with providers
[mediawiki.git] / tests / phpunit / includes / api / format / ApiFormatPhpTest.php
blob54f447a92a7f324dd661bcd27118c36a530eeb97
1 <?php
3 /**
4 * @group API
5 * @group Database
6 * @group medium
7 * @covers ApiFormatPhp
8 */
9 class ApiFormatPhpTest extends ApiFormatTestBase {
11 public function testValidSyntax( ) {
12 $data = $this->apiRequest( 'php', array( 'action' => 'query', 'meta' => 'siteinfo' ) );
14 $this->assertInternalType( 'array', unserialize( $data ) );
15 $this->assertGreaterThan( 0, count( (array)$data ) );