We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67c60c7 commit 7cac56fCopy full SHA for 7cac56f
src/PHPDraft/Core/BaseTest.php
@@ -76,7 +76,7 @@ private function __runkit_mock_function($name, $return)
76
runkit_function_copy($name, $name . self::FUNCTION_ID);
77
}
78
79
- runkit_function_redefine($name, '', 'return '.$return.';');
+ runkit_function_redefine($name, '', 'return '.(is_string($return)?'"'.$return.'"':$return).'";');
80
81
82
/**
0 commit comments