diff --git a/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php b/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php index 7e37dfe12b77..a0b8e1d1b366 100644 --- a/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php +++ b/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php @@ -89,7 +89,7 @@ public function testFromCallableClosureCaster() } $var = [ (new \ReflectionMethod($this, __FUNCTION__))->getClosure($this), - (new \ReflectionMethod(__CLASS__, 'tearDownAfterClass'))->getClosure(), + (new \ReflectionMethod(__CLASS__, 'stub'))->getClosure(), ]; $this->assertDumpMatchesFormat( @@ -100,8 +100,9 @@ public function testFromCallableClosureCaster() file: "%sReflectionCasterTest.php" line: "%d to %d" } - 1 => %sTestCase::tearDownAfterClass() { - file: "%sTestCase.php" + 1 => Symfony\Component\VarDumper\Tests\Caster\ReflectionCasterTest::stub(): void { + returnType: "void" + file: "%sReflectionCasterTest.php" line: "%d to %d" } ] @@ -244,6 +245,10 @@ public function testGenerator() EODUMP; $this->assertDumpMatchesFormat($expectedDump, $generator); } + + public static function stub(): void + { + } } function reflectionParameterFixture(NotLoadableClass $arg1 = null, $arg2)