build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
[lhc/web/wiklou.git] / tests / phpunit / includes / libs / XhprofTest.php
index 6748115..0ea1328 100644 (file)
  * @file
  */
 
-class XhprofTest extends PHPUnit_Framework_TestCase {
+class XhprofTest extends PHPUnit\Framework\TestCase {
+
+       use MediaWikiCoversValidator;
+
        /**
         * Trying to enable Xhprof when it is already enabled causes an exception
         * to be thrown.
@@ -28,7 +31,7 @@ class XhprofTest extends PHPUnit_Framework_TestCase {
         * @covers Xhprof::enable
         */
        public function testEnable() {
-               $xhprof = new ReflectionClass( 'Xhprof' );
+               $xhprof = new ReflectionClass( Xhprof::class );
                $enabled = $xhprof->getProperty( 'enabled' );
                $enabled->setAccessible( true );
                $enabled->setValue( true );