From 5f8a085483c2fd709f9ccdfbbe67ae7d5869518a Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 30 May 2021 14:55:32 +0200 Subject: [PATCH] Fix the casing in the used PHPUnit namespaces This fixes some PHPStan warnings. --- phpstan-baseline.neon | 10 ---------- tests/Sabberworm/CSS/OutputFormatTest.php | 2 +- tests/Sabberworm/CSS/ParserTest.php | 2 +- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 008d413f..d03e2455 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -15,13 +15,3 @@ parameters: count: 5 path: lib/Sabberworm/CSS/Property/Charset.php - - - message: "#^Class PHPUnit\\\\Framework\\\\TestCase referenced with incorrect case\\: PHPunit\\\\Framework\\\\TestCase\\.$#" - count: 1 - path: tests/Sabberworm/CSS/OutputFormatTest.php - - - - message: "#^Class PHPUnit\\\\Framework\\\\TestCase referenced with incorrect case\\: PHPunit\\\\Framework\\\\TestCase\\.$#" - count: 1 - path: tests/Sabberworm/CSS/ParserTest.php - diff --git a/tests/Sabberworm/CSS/OutputFormatTest.php b/tests/Sabberworm/CSS/OutputFormatTest.php index db8a5d4b..456ee598 100644 --- a/tests/Sabberworm/CSS/OutputFormatTest.php +++ b/tests/Sabberworm/CSS/OutputFormatTest.php @@ -21,7 +21,7 @@ EOT; -class OutputFormatTest extends \PHPunit\Framework\TestCase +class OutputFormatTest extends \PHPUnit\Framework\TestCase { private $oParser; private $oDocument; diff --git a/tests/Sabberworm/CSS/ParserTest.php b/tests/Sabberworm/CSS/ParserTest.php index 83a7e714..8ad7baee 100644 --- a/tests/Sabberworm/CSS/ParserTest.php +++ b/tests/Sabberworm/CSS/ParserTest.php @@ -14,7 +14,7 @@ use Sabberworm\CSS\Value\Size; use Sabberworm\CSS\Value\URL; -class ParserTest extends \PHPunit\Framework\TestCase +class ParserTest extends \PHPUnit\Framework\TestCase { public function testFiles()