$this->assertEquals(
[
+ 'fromencoded' => false,
'from' => 'Project:articleA',
'to' => $to->getPrefixedText(),
],
$this->assertEquals(
[
+ 'fromencoded' => false,
'from' => 'article_B',
'to' => 'Article B'
],
$exceptionCaught = false;
try {
$this->assertEquals( $expected, $api->titlePartToKey( $titlePart, $namespace ) );
- } catch ( UsageException $e ) {
+ } catch ( ApiUsageException $e ) {
$exceptionCaught = true;
}
$this->assertEquals( $expectException, $exceptionCaught,
- 'UsageException thrown by titlePartToKey' );
+ 'ApiUsageException thrown by titlePartToKey' );
}
function provideTestTitlePartToKey() {