Skip to content

Commit 3974031

Browse files
committed
Removing dump, adding comments.
1 parent 49f5ae8 commit 3974031

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Tests/Extensions/MockFunctionTest.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ protected function setUp()
3737
$this->test_scope_object = new TestScopeObject();
3838
}
3939

40-
protected function onNotSuccessfulTest( Exception $e )
41-
{
42-
var_dump( $e->getMessage() );
43-
var_dump( $e->getTraceAsString() );
44-
}
45-
4640
/**
4741
* Test simple function return faking without consraints.
4842
*/
@@ -97,6 +91,14 @@ public function testMockNewFunction()
9791
$this->object->restore();
9892
}
9993

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+
*/
100102
protected static function getFunctionName( $function_name )
101103
{
102104
// Memoization for config value.

0 commit comments

Comments
 (0)