<?php
+/**
+ * @coversNothing Just a sample
+ */
class SampleTest extends MediaWikiLangTestCase {
/**
// This sets the globals and will restore them automatically
// after each test.
+ $this->setContentLang( 'en' );
$this->setMwGlobals( [
- 'wgContLang' => Language::factory( 'en' ),
- 'wgLanguageCode' => 'en',
'wgCapitalLinks' => true,
] );
}
*/
public function testTitleObjectStringConversion() {
$title = Title::newFromText( "text" );
- $this->assertInstanceOf( 'Title', $title, "Title creation" );
+ $this->assertInstanceOf( Title::class, $title, "Title creation" );
$this->assertEquals( "Text", $title, "Automatic string conversion" );
$title = Title::newFromText( "text", NS_MEDIA );