Completed
Push — master ( d341ce...e1fae5 )
by Kenji
19s queued 11s
created
application/tests/_ci_phpunit_test/patcher/4.x/Patcher/FunctionPatcher.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -84,6 +84,9 @@  discard block
 block discarded – undo
84 84
 		$this->node_visitor = new NodeVisitor();
85 85
 	}
86 86
 
87
+	/**
88
+	 * @param string $error_msg
89
+	 */
87 90
 	protected static function checkLock($error_msg)
88 91
 	{
89 92
 		if (self::$lock_function_list)
@@ -110,6 +113,9 @@  discard block
 block discarded – undo
110 113
 		return self::$whitelist;
111 114
 	}
112 115
 
116
+	/**
117
+	 * @param string $function_name
118
+	 */
113 119
 	public static function addBlacklist($function_name)
114 120
 	{
115 121
 		self::checkLock("You can't add to blacklist after initialization");
Please login to merge, or discard this patch.
tests/_ci_phpunit_test/patcher/4.x/Patcher/FunctionPatcher/Proxy.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	 * 
38 38
 	 * @param string $function     function name
39 39
 	 * @param mixed  $return_value return value or callable
40
-	 * @param string $class_name   class::method to apply this patch
40
+	 * @param string $class_method   class::method to apply this patch
41 41
 	 * 
42 42
 	 * @throws LogicException
43 43
 	 */
@@ -86,6 +86,9 @@  discard block
 block discarded – undo
86 86
 		InvocationVerifier::verify(self::$expected_invocations, self::$invocations);
87 87
 	}
88 88
 
89
+	/**
90
+	 * @param string $function
91
+	 */
89 92
 	protected static function logInvocation($function, $arguments)
90 93
 	{
91 94
 		if (MonkeyPatchManager::$debug)
@@ -111,6 +114,9 @@  discard block
 block discarded – undo
111 114
 		}
112 115
 	}
113 116
 
117
+	/**
118
+	 * @param string $function
119
+	 */
114 120
 	protected static function checkCalledMethod($function)
115 121
 	{
116 122
 		$trace = debug_backtrace();
@@ -184,6 +190,9 @@  discard block
 block discarded – undo
184 190
 		return call_user_func_array($function, $arguments);
185 191
 	}
186 192
 
193
+	/**
194
+	 * @param string $function
195
+	 */
187 196
 	protected static function checkPassedByReference($function)
188 197
 	{
189 198
 		$ref_func = new ReflectionFunction($function);
Please login to merge, or discard this patch.
application/tests/_ci_phpunit_test/CIPHPUnitTestDouble.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	 *
33 33
 	 * @param  string $classname
34 34
 	 * @param  array  $params             [method_name => return_value]
35
-	 * @param  mixed  $constructor_params false: disable construntor, array: construntor params
35
+	 * @param  boolean  $constructor_params false: disable construntor, array: construntor params
36 36
 	 * 
37 37
 	 * @return mixed PHPUnit mock object
38 38
 	 */
@@ -72,6 +72,10 @@  discard block
 block discarded – undo
72 72
 		return $mock;
73 73
 	}
74 74
 
75
+	/**
76
+	 * @param string $method
77
+	 * @param string $with
78
+	 */
75 79
 	protected function _verify($mock, $method, $params = null, $expects, $with)
76 80
 	{
77 81
 		$invocation = $mock->expects($expects)
Please login to merge, or discard this patch.
application/tests/_ci_phpunit_test/patcher/2.x/MonkeyPatchManager.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@  discard block
 block discarded – undo
40 40
 		'ConstantPatcher',
41 41
 	];
42 42
 
43
+	/**
44
+	 * @param string $message
45
+	 */
43 46
 	public static function log($message)
44 47
 	{
45 48
 		if (! self::$debug)
@@ -224,6 +227,9 @@  discard block
 block discarded – undo
224 227
 		}
225 228
 	}
226 229
 
230
+	/**
231
+	 * @param string $patcher
232
+	 */
227 233
 	public static function isEnabled($patcher)
228 234
 	{
229 235
 		return in_array($patcher, self::$patcher_list);
@@ -316,6 +322,9 @@  discard block
 block discarded – undo
316 322
 		self::$load_patchers = true;
317 323
 	}
318 324
 
325
+	/**
326
+	 * @param string $source
327
+	 */
319 328
 	protected static function execPatchers($source)
320 329
 	{
321 330
 		$patched = false;
Please login to merge, or discard this patch.
application/tests/_ci_phpunit_test/patcher/3.x/MonkeyPatchManager.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@  discard block
 block discarded – undo
40 40
 		'ConstantPatcher',
41 41
 	];
42 42
 
43
+	/**
44
+	 * @param string $message
45
+	 */
43 46
 	public static function log($message)
44 47
 	{
45 48
 		if (! self::$debug)
@@ -224,6 +227,9 @@  discard block
 block discarded – undo
224 227
 		}
225 228
 	}
226 229
 
230
+	/**
231
+	 * @param string $patcher
232
+	 */
227 233
 	public static function isEnabled($patcher)
228 234
 	{
229 235
 		return in_array($patcher, self::$patcher_list);
@@ -316,6 +322,9 @@  discard block
 block discarded – undo
316 322
 		self::$load_patchers = true;
317 323
 	}
318 324
 
325
+	/**
326
+	 * @param string $source
327
+	 */
319 328
 	protected static function execPatchers($source)
320 329
 	{
321 330
 		$patched = false;
Please login to merge, or discard this patch.
application/tests/_ci_phpunit_test/patcher/4.x/MonkeyPatchManager.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@  discard block
 block discarded – undo
40 40
 		'ConstantPatcher',
41 41
 	];
42 42
 
43
+	/**
44
+	 * @param string $message
45
+	 */
43 46
 	public static function log($message)
44 47
 	{
45 48
 		if (! self::$debug)
@@ -224,6 +227,9 @@  discard block
 block discarded – undo
224 227
 		}
225 228
 	}
226 229
 
230
+	/**
231
+	 * @param string $patcher
232
+	 */
227 233
 	public static function isEnabled($patcher)
228 234
 	{
229 235
 		return in_array($patcher, self::$patcher_list);
@@ -316,6 +322,9 @@  discard block
 block discarded – undo
316 322
 		self::$load_patchers = true;
317 323
 	}
318 324
 
325
+	/**
326
+	 * @param string $source
327
+	 */
319 328
 	protected static function execPatchers($source)
320 329
 	{
321 330
 		$patched = false;
Please login to merge, or discard this patch.