Debian Codegraph @

tests/phpunit/includes/api/MockApiQueryBase.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Tests\Api;
4
5 use MediaWiki\Api\ApiQueryBase;
6
7 class MockApiQueryBase extends ApiQueryBase {
8 /** @var string */
9 private $name;
10
11 public function execute() {
12 }
13
14 public function __construct( $name = 'mock' ) {
15 $this->name = $name;
16 }
17
18 public function getModuleName() {
19 return $this->name;
20 }
21
22 public function getModulePath() {
23 return 'query+' . $this->getModuleName();
24 }
25 }