MediaWiki  REL1_22
ApiFormatPhpTest.php
Go to the documentation of this file.
00001 <?php
00002 
00008 class ApiFormatPhpTest extends ApiFormatTestBase {
00009 
00010     public function testValidPhpSyntax() {
00011 
00012         $data = $this->apiRequest( 'php', array( 'action' => 'query', 'meta' => 'siteinfo' ) );
00013 
00014         $this->assertInternalType( 'array', unserialize( $data ) );
00015         $this->assertGreaterThan( 0, count( (array)$data ) );
00016     }
00017 }