diff --git a/tests/unit/Framework/MockObject/MockObjectTest.php b/tests/unit/Framework/MockObject/MockObjectTest.php index 36246543b2f..3166877138a 100644 --- a/tests/unit/Framework/MockObject/MockObjectTest.php +++ b/tests/unit/Framework/MockObject/MockObjectTest.php @@ -1101,9 +1101,6 @@ public function testVoidReturnTypeIsMockedCorrectly(): void $this->assertNull($stub->methodWithVoidReturnTypeDeclaration()); } - /** - * @requires PHP 7.2 - */ public function testObjectReturnTypeIsMockedCorrectly(): void { /** @var ClassWithAllPossibleReturnTypes|MockObject $stub */ diff --git a/tests/unit/Framework/TestCaseTest.php b/tests/unit/Framework/TestCaseTest.php index 6720a3435f7..82435b1c4e0 100644 --- a/tests/unit/Framework/TestCaseTest.php +++ b/tests/unit/Framework/TestCaseTest.php @@ -852,9 +852,6 @@ public function testCurrentWorkingDirectoryIsRestored(): void $this->assertSame($expectedCwd, getcwd()); } - /** - * @requires PHP 7 - */ public function testTypeErrorCanBeExpected(): void { $o = new ClassWithScalarTypeDeclarations;