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 = [
|
$var = [
|
||||||
(new \ReflectionMethod($this, __FUNCTION__))->getClosure($this),
|
(new \ReflectionMethod($this, __FUNCTION__))->getClosure($this),
|
||||||
(new \ReflectionMethod(__CLASS__, 'tearDownAfterClass'))->getClosure(),
|
(new \ReflectionMethod(__CLASS__, 'stub'))->getClosure(),
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->assertDumpMatchesFormat(
|
$this->assertDumpMatchesFormat(
|
||||||
@ -100,8 +100,9 @@ array:2 [
|
|||||||
file: "%sReflectionCasterTest.php"
|
file: "%sReflectionCasterTest.php"
|
||||||
line: "%d to %d"
|
line: "%d to %d"
|
||||||
}
|
}
|
||||||
1 => %sTestCase::tearDownAfterClass() {
|
1 => Symfony\Component\VarDumper\Tests\Caster\ReflectionCasterTest::stub(): void {
|
||||||
file: "%sTestCase.php"
|
returnType: "void"
|
||||||
|
file: "%sReflectionCasterTest.php"
|
||||||
line: "%d to %d"
|
line: "%d to %d"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -244,6 +245,10 @@ Generator {
|
|||||||
EODUMP;
|
EODUMP;
|
||||||
$this->assertDumpMatchesFormat($expectedDump, $generator);
|
$this->assertDumpMatchesFormat($expectedDump, $generator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function stub(): void
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function reflectionParameterFixture(NotLoadableClass $arg1 = null, $arg2)
|
function reflectionParameterFixture(NotLoadableClass $arg1 = null, $arg2)
|
||||||
|
Reference in New Issue
Block a user