diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2018-01-13 01:02:09 +0100 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2018-01-26 22:49:13 +0100 |
commit | 45da5815517c408bafed6b3744766860afdcd7b8 (patch) | |
tree | bbb923551aa254d65bde3fa240194a02c10557d4 /tests/phpunit/includes/content/TextContentTest.php | |
parent | 707c74227c02a4f3d6332d8439eb1788cb801790 (diff) | |
download | mediawikicore-45da5815517c408bafed6b3744766860afdcd7b8.tar.gz mediawikicore-45da5815517c408bafed6b3744766860afdcd7b8.zip |
Use ::class to resolve class names in tests
This helps to find renamed or misspelled classes earlier.
Phan will check the class names
Change-Id: Ie541a7baae10ab6f5c13f95ac2ff6598b8f8950c
Diffstat (limited to 'tests/phpunit/includes/content/TextContentTest.php')
-rw-r--r-- | tests/phpunit/includes/content/TextContentTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/content/TextContentTest.php b/tests/phpunit/includes/content/TextContentTest.php index 160149335254..b5480911df17 100644 --- a/tests/phpunit/includes/content/TextContentTest.php +++ b/tests/phpunit/includes/content/TextContentTest.php @@ -454,7 +454,7 @@ class TextContentTest extends MediaWikiLangTestCase { if ( $expectedNative === false ) { $this->assertFalse( $converted, "conversion to $model was expected to fail!" ); } else { - $this->assertInstanceOf( 'Content', $converted ); + $this->assertInstanceOf( Content::class, $converted ); $this->assertEquals( $expectedNative, $converted->getNativeData() ); } } |