<?php
-class TestSample extends MediaWikiLangTestCase {
+class SampleTest extends MediaWikiLangTestCase {
/**
* Anything that needs to happen before your tests should go here.
* they run. While MediaWiki isn't strictly an Agile Programming
* project, you are encouraged to use the naming described under
* "Agile Documentation" at
- * http://www.phpunit.de/manual/3.4/en/other-uses-for-tests.html
+ * https://www.phpunit.de/manual/3.4/en/other-uses-for-tests.html
*/
public function testTitleObjectStringConversion() {
$title = Title::newFromText( "text" );
/**
* If you want to run a the same test with a variety of data, use a data provider.
- * see: http://www.phpunit.de/manual/3.4/en/writing-tests-for-phpunit.html
+ * see: https://www.phpunit.de/manual/3.4/en/writing-tests-for-phpunit.html
*/
public static function provideTitles() {
return [
];
}
- // @codingStandardsIgnoreStart Generic.Files.LineLength
/**
+ * phpcs:disable Generic.Files.LineLength
* @dataProvider provideTitles
- * See http://phpunit.de/manual/3.7/en/appendixes.annotations.html#appendixes.annotations.dataProvider
+ * See https://phpunit.de/manual/3.7/en/appendixes.annotations.html#appendixes.annotations.dataProvider
+ * phpcs:enable
*/
- // @codingStandardsIgnoreEnd
public function testCreateBasicListOfTitles( $titleName, $ns, $text ) {
$title = Title::newFromText( $titleName, $ns );
$this->assertEquals( $text, "$title", "see if '$titleName' matches '$text'" );
/**
* @depends testSetUpMainPageTitleForNextTest
- * See http://phpunit.de/manual/3.7/en/appendixes.annotations.html#appendixes.annotations.depends
+ * See https://phpunit.de/manual/3.7/en/appendixes.annotations.html#appendixes.annotations.depends
*/
public function testCheckMainPageTitleIsConsideredLocal( $title ) {
$this->assertTrue( $title->isLocal() );
}
- // @codingStandardsIgnoreStart Generic.Files.LineLength
/**
* @expectedException InvalidArgumentException
- * See http://phpunit.de/manual/3.7/en/appendixes.annotations.html#appendixes.annotations.expectedException
+ * See https://phpunit.de/manual/3.7/en/appendixes.annotations.html#appendixes.annotations.expectedException
*/
- // @codingStandardsIgnoreEnd
public function testTitleObjectFromObject() {
$title = Title::newFromText( Title::newFromText( "test" ) );
$this->assertEquals( "Test", $title->isLocal() );