Fix tst patern to handle callstack with/without return typehint
This commit is contained in:
parent
f773217622
commit
feaadd1c0b
@ -89,7 +89,7 @@ EOTXT
|
||||
}
|
||||
$var = [
|
||||
(new \ReflectionMethod($this, __FUNCTION__))->getClosure($this),
|
||||
(new \ReflectionMethod(__CLASS__, 'tearDownAfterClass'))->getClosure(),
|
||||
(new \ReflectionMethod(__CLASS__, 'stub'))->getClosure(),
|
||||
];
|
||||
|
||||
$this->assertDumpMatchesFormat(
|
||||
@ -100,8 +100,9 @@ array:2 [
|
||||
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 @@ Generator {
|
||||
EODUMP;
|
||||
$this->assertDumpMatchesFormat($expectedDump, $generator);
|
||||
}
|
||||
|
||||
public static function stub(): void
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
function reflectionParameterFixture(NotLoadableClass $arg1 = null, $arg2)
|
||||
|
Reference in New Issue
Block a user