* @return GenderCache
*/
private function getGenderCache() {
- $genderCache = $this->getMockBuilder( 'GenderCache' )
+ $genderCache = $this->getMockBuilder( GenderCache::class )
->disableOriginalConstructor()
->getMock();
// XML/HTML character entity references
// Note: Commented out because they are not marked invalid by the PHP test as
// Title::newFromText runs Sanitizer::decodeCharReferencesAndNormalize first.
- // array( 'A é B' ),
- // array( 'A é B' ),
- // array( 'A é B' ),
+ // [ 'A é B' ],
+ // [ 'A é B' ],
+ // [ 'A é B' ],
// Subject of NS_TALK does not roundtrip to NS_MAIN
[ 'Talk:File:Example.svg' ],
// Directory navigation
* @dataProvider provideParseTitle_invalid
*/
public function testParseTitle_invalid( $text ) {
- $this->setExpectedException( 'MalformedTitleException' );
+ $this->setExpectedException( MalformedTitleException::class );
$codec = $this->makeCodec( 'en' );
$codec->parseTitle( $text, NS_MAIN );