X-Git-Url: https://git.heureux-cyclage.org/index.php?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2FXhprofTest.php;h=0ea132896dc3bdc19410a45f5b1a8547f635896c;hb=a8e1051d4c47f8c5b2c55b072f903fdc0469849e;hp=6748115423cbde2caa9b5026f0d75129e41060e7;hpb=adae996840b9e782f6e14b21c433a83e37c3a74e;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/libs/XhprofTest.php b/tests/phpunit/includes/libs/XhprofTest.php index 6748115423..0ea132896d 100644 --- a/tests/phpunit/includes/libs/XhprofTest.php +++ b/tests/phpunit/includes/libs/XhprofTest.php @@ -18,7 +18,10 @@ * @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 );