diff --git a/src/Framework/Assert/Functions.php b/src/Framework/Assert/Functions.php index d26bc5f1b5e..0eb101ade97 100644 --- a/src/Framework/Assert/Functions.php +++ b/src/Framework/Assert/Functions.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - use PHPUnit\Framework\Assert; use PHPUnit\Framework\AssertionFailedError; use PHPUnit\Framework\Constraint\ArrayHasKey; diff --git a/tests/_files/3194.php b/tests/_files/3194.php index b59d9585ecc..deef7e44723 100644 --- a/tests/_files/3194.php +++ b/tests/_files/3194.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - use PHPUnit\Framework\TestCase; trait T3194 diff --git a/tests/_files/Author.php b/tests/_files/Author.php index bdec2f9e139..2ff8945050b 100644 --- a/tests/_files/Author.php +++ b/tests/_files/Author.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - /** * An author. */ diff --git a/tests/_files/BankAccount.php b/tests/_files/BankAccount.php index 0b9e2e76a2f..ddc68dbe552 100644 --- a/tests/_files/BankAccount.php +++ b/tests/_files/BankAccount.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - class BankAccountException extends RuntimeException { } diff --git a/tests/_files/BankAccountTest2.php b/tests/_files/BankAccountTest2.php index 040903602b7..56609756d1e 100644 --- a/tests/_files/BankAccountTest2.php +++ b/tests/_files/BankAccountTest2.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - use PHPUnit\Framework\TestCase; class BankAccountTest extends TestCase diff --git a/tests/_files/Book.php b/tests/_files/Book.php index 3e6e4a4ed95..c20655ec777 100644 --- a/tests/_files/Book.php +++ b/tests/_files/Book.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - /** * A book. */ diff --git a/tests/_files/ClassWithToString.php b/tests/_files/ClassWithToString.php index 257dbb13afe..1a1f46808fe 100644 --- a/tests/_files/ClassWithToString.php +++ b/tests/_files/ClassWithToString.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - /** * A class with a __toString() method. */ diff --git a/tests/_files/ClassWithVariadicArgumentMethod.php b/tests/_files/ClassWithVariadicArgumentMethod.php index 2cb1e99fbd3..33bafa12ebd 100644 --- a/tests/_files/ClassWithVariadicArgumentMethod.php +++ b/tests/_files/ClassWithVariadicArgumentMethod.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - /** * A class with a method that takes a variadic argument. */ diff --git a/tests/_files/CoverageTwoDefaultClassAnnotations.php b/tests/_files/CoverageTwoDefaultClassAnnotations.php index 9c2318e835e..01c111e42af 100644 --- a/tests/_files/CoverageTwoDefaultClassAnnotations.php +++ b/tests/_files/CoverageTwoDefaultClassAnnotations.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - /** * @coversDefaultClass \NamespaceOne * @coversDefaultClass \AnotherDefault\Name\Space\Does\Not\Work diff --git a/tests/_files/FinalClass.php b/tests/_files/FinalClass.php index 26c4f723acc..614b09fdcd4 100644 --- a/tests/_files/FinalClass.php +++ b/tests/_files/FinalClass.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - final class FinalClass { private $value; diff --git a/tests/_files/IgnoreCodeCoverageClass.php b/tests/_files/IgnoreCodeCoverageClass.php index f079521dff3..a2c8841a9ee 100644 --- a/tests/_files/IgnoreCodeCoverageClass.php +++ b/tests/_files/IgnoreCodeCoverageClass.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - /** * @codeCoverageIgnore */ diff --git a/tests/_files/ParseTestMethodAnnotationsMock.php b/tests/_files/ParseTestMethodAnnotationsMock.php index b6017cc9dcc..2ad8a46c728 100644 --- a/tests/_files/ParseTestMethodAnnotationsMock.php +++ b/tests/_files/ParseTestMethodAnnotationsMock.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - /** * @theClassAnnotation */ diff --git a/tests/_files/RequirementsClassDocBlockTest.php b/tests/_files/RequirementsClassDocBlockTest.php index d1ef26d625f..bef755bf76a 100644 --- a/tests/_files/RequirementsClassDocBlockTest.php +++ b/tests/_files/RequirementsClassDocBlockTest.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - /** * @requires PHP 5.3 * @requires PHPUnit 4.0 diff --git a/tests/_files/RouterTest.php b/tests/_files/RouterTest.php index 1c4c7ffafdb..fce5e18b667 100644 --- a/tests/_files/RouterTest.php +++ b/tests/_files/RouterTest.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - use PHPUnit\Framework\TestCase; final class RouterTest extends TestCase diff --git a/tests/_files/StopOnErrorTestSuite.php b/tests/_files/StopOnErrorTestSuite.php index 44c752e5a57..b731cacaf66 100644 --- a/tests/_files/StopOnErrorTestSuite.php +++ b/tests/_files/StopOnErrorTestSuite.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - class StopOnErrorTestSuite extends \PHPUnit\Framework\TestCase { public function testIncomplete(): void diff --git a/tests/_files/TestCaseWithExceptionInHook.php b/tests/_files/TestCaseWithExceptionInHook.php index cbc478da2e9..1ac06318f92 100644 --- a/tests/_files/TestCaseWithExceptionInHook.php +++ b/tests/_files/TestCaseWithExceptionInHook.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - use PHPUnit\Framework\TestCase; final class TestCaseWithExceptionInHook extends TestCase diff --git a/tests/_files/TestIteratorAggregate2.php b/tests/_files/TestIteratorAggregate2.php index 0dd72ddba86..e8353690e30 100644 --- a/tests/_files/TestIteratorAggregate2.php +++ b/tests/_files/TestIteratorAggregate2.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - class TestIteratorAggregate2 implements IteratorAggregate { private $traversable; diff --git a/tests/end-to-end/regression/GitHub/2724/SeparateClassRunMethodInNewProcessTest.php b/tests/end-to-end/regression/GitHub/2724/SeparateClassRunMethodInNewProcessTest.php index eca8dcb0b15..0079f44ea6f 100644 --- a/tests/end-to-end/regression/GitHub/2724/SeparateClassRunMethodInNewProcessTest.php +++ b/tests/end-to-end/regression/GitHub/2724/SeparateClassRunMethodInNewProcessTest.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - /** * @runClassInSeparateProcess */ diff --git a/tests/end-to-end/regression/GitHub/2830/Issue2830Test.php b/tests/end-to-end/regression/GitHub/2830/Issue2830Test.php index 497e2595cf4..e364766ba3f 100644 --- a/tests/end-to-end/regression/GitHub/2830/Issue2830Test.php +++ b/tests/end-to-end/regression/GitHub/2830/Issue2830Test.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - class Issue2830Test extends PHPUnit\Framework\TestCase { /** diff --git a/tests/end-to-end/regression/GitHub/3379/Issue3379TestListener.php b/tests/end-to-end/regression/GitHub/3379/Issue3379TestListener.php index b4206deff37..7045ff7946c 100644 --- a/tests/end-to-end/regression/GitHub/3379/Issue3379TestListener.php +++ b/tests/end-to-end/regression/GitHub/3379/Issue3379TestListener.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - use PHPUnit\Framework\Test; use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestListener; diff --git a/tests/end-to-end/regression/GitHub/3904/Issue3904_2Test.php b/tests/end-to-end/regression/GitHub/3904/Issue3904_2Test.php index f0c42bb1041..14f7fb02447 100644 --- a/tests/end-to-end/regression/GitHub/3904/Issue3904_2Test.php +++ b/tests/end-to-end/regression/GitHub/3904/Issue3904_2Test.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - final class Issue3904_2Test { public function testOne(): void diff --git a/tests/end-to-end/regression/GitHub/3904/Issue3904_3Test.php b/tests/end-to-end/regression/GitHub/3904/Issue3904_3Test.php index 01e28e8225c..696e26af327 100644 --- a/tests/end-to-end/regression/GitHub/3904/Issue3904_3Test.php +++ b/tests/end-to-end/regression/GitHub/3904/Issue3904_3Test.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - use PHPUnit\Framework\TestCase; final class Issue3904Test extends TestCase diff --git a/tests/unit/Framework/MockObject/Builder/InvocationMockerTest.php b/tests/unit/Framework/MockObject/Builder/InvocationMockerTest.php index d9e22d9ffc2..25dc08bbd6d 100644 --- a/tests/unit/Framework/MockObject/Builder/InvocationMockerTest.php +++ b/tests/unit/Framework/MockObject/Builder/InvocationMockerTest.php @@ -8,7 +8,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - use PHPUnit\Framework\Constraint\IsEqual; use PHPUnit\Framework\MockObject\Builder\InvocationMocker; use PHPUnit\Framework\MockObject\IncompatibleReturnValueException; diff --git a/tests/unit/Framework/MockObject/GeneratorTest.php b/tests/unit/Framework/MockObject/GeneratorTest.php index 601f305946f..4153846963f 100644 --- a/tests/unit/Framework/MockObject/GeneratorTest.php +++ b/tests/unit/Framework/MockObject/GeneratorTest.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - use PHPUnit\Framework\MockObject\Generator; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Framework/MockObject/Matcher/ConsecutiveParametersTest.php b/tests/unit/Framework/MockObject/Matcher/ConsecutiveParametersTest.php index 61791002be9..2885ffd5714 100644 --- a/tests/unit/Framework/MockObject/Matcher/ConsecutiveParametersTest.php +++ b/tests/unit/Framework/MockObject/Matcher/ConsecutiveParametersTest.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - use PHPUnit\Framework\ExpectationFailedException; use PHPUnit\Framework\InvalidParameterGroupException; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Framework/MockObject/MockBuilderTest.php b/tests/unit/Framework/MockObject/MockBuilderTest.php index fce1538875f..10a527e8a9d 100644 --- a/tests/unit/Framework/MockObject/MockBuilderTest.php +++ b/tests/unit/Framework/MockObject/MockBuilderTest.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - use PHPUnit\Framework\MockObject\MockBuilder; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Framework/MockObject/MockObjectTest.php b/tests/unit/Framework/MockObject/MockObjectTest.php index 732bd16a110..596d7d797dd 100644 --- a/tests/unit/Framework/MockObject/MockObjectTest.php +++ b/tests/unit/Framework/MockObject/MockObjectTest.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - use PHPUnit\Framework\ExpectationFailedException; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; diff --git a/tests/unit/Framework/MockObject/ProxyObjectTest.php b/tests/unit/Framework/MockObject/ProxyObjectTest.php index d34093e7f02..88ebf4fa13f 100644 --- a/tests/unit/Framework/MockObject/ProxyObjectTest.php +++ b/tests/unit/Framework/MockObject/ProxyObjectTest.php @@ -7,7 +7,6 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase;