public function testCustomFunctionValidationSuccess()
{
$this->expectOutputString('success');
$this->sandbox->setFuncValidator(function ($name) {
return $name == 'test';
});
function test()
{
echo 'success';
}
$this->sandbox->execute(function () {
test();
});
}