File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,6 @@ protected function setUp()
37
37
$ this ->test_scope_object = new TestScopeObject ();
38
38
}
39
39
40
- protected function onNotSuccessfulTest ( Exception $ e )
41
- {
42
- var_dump ( $ e ->getMessage () );
43
- var_dump ( $ e ->getTraceAsString () );
44
- }
45
-
46
40
/**
47
41
* Test simple function return faking without consraints.
48
42
*/
@@ -97,6 +91,14 @@ public function testMockNewFunction()
97
91
$ this ->object ->restore ();
98
92
}
99
93
94
+ /**
95
+ * When runkit.internal_override is Off, we cannot mock internal functions,
96
+ * so we make a proxy around them and mock the proxy.
97
+ *
98
+ * @staticvar boolean $internal_override_on Tell is the config value is on.
99
+ * @param type $function_name The (internal) function name to mock.
100
+ * @return string The final function name (either proxy or the original).
101
+ */
100
102
protected static function getFunctionName ( $ function_name )
101
103
{
102
104
// Memoization for config value.
You can’t perform that action at this time.
0 commit comments