File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,21 @@ class BaseTest extends PHPUnit_Framework_TestCase
19
19
const FUNCTION_ID = '_phpdraftbu ' ;
20
20
/**
21
21
* Test Class
22
+ *
22
23
* @var mixed
23
24
*/
24
25
protected $ class ;
25
26
26
27
/**
27
28
* Test reflection
29
+ *
28
30
* @var ReflectionClass
29
31
*/
30
32
protected $ reflection ;
31
33
32
34
/**
33
35
* Clear up tests
36
+ *
34
37
* @return void
35
38
*/
36
39
public function tearDown ()
@@ -76,7 +79,7 @@ private function __runkit_mock_function($name, $return)
76
79
runkit_function_copy ($ name , $ name . self ::FUNCTION_ID );
77
80
}
78
81
79
- runkit_function_redefine ($ name , '' , 'return ' . (is_string ($ return )? '" ' . $ return. '" ' : $ return ). ' " ; ' );
82
+ runkit_function_redefine ($ name , '' , 'return ' . (is_string ($ return ) ? ( '" ' . $ return . '" ' ) : $ return ) . ' ; ' );
80
83
}
81
84
82
85
/**
@@ -93,6 +96,7 @@ private function __uopz_mock_function($name, $return)
93
96
\uopz_backup ($ name );
94
97
\uopz_function ($ name , function () {
95
98
global $ return ;
99
+
96
100
return $ return ;
97
101
});
98
102
You can’t perform that action at this time.
0 commit comments