File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public function registerForTearDown(Deactivatable $deactivatable)
116
116
* is doing this for you. But if the mock is defined after the first call in the
117
117
* tested class, the tested class doesn't resolve to the mock. This is
118
118
* documented in Bug #68541. You therefore have to define the namespaced
119
- * function before the first call (e.g. with @ beforeClass).
119
+ * function before the first call (e.g. with the beforeClass annotation ).
120
120
*
121
121
* Defining the function has no side effects. If the function was
122
122
* already defined this method does nothing.
@@ -127,7 +127,7 @@ public function registerForTearDown(Deactivatable $deactivatable)
127
127
* @param string $namespace The function namespace.
128
128
* @param string $name The function name.
129
129
*/
130
- public function defineFunctionMock ($ namespace , $ name )
130
+ public static function defineFunctionMock ($ namespace , $ name )
131
131
{
132
132
$ functionMockBuilder = new MockBuilder ();
133
133
$ functionMockBuilder ->setNamespace ($ namespace )
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ protected function disableMocks()
34
34
*/
35
35
public function testDefineFunctionMock ()
36
36
{
37
- $ this -> defineFunctionMock (__NAMESPACE__ , "escapeshellcmd " );
37
+ self :: defineFunctionMock (__NAMESPACE__ , "escapeshellcmd " );
38
38
self ::escapeshellcmd ("foo " );
39
39
40
40
$ mock = $ this ->getFunctionMock (__NAMESPACE__ , "escapeshellcmd " );
You can’t perform that action at this time.
0 commit comments