Completed
Push — master ( ed463f...5ddcb3 )
by Kenji
8s
created
application/tests/_ci_phpunit_test/CIPHPUnitTestCase.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 			return $this->$name;
42 42
 		}
43 43
 
44
-		throw new LogicException('No such property: ' . $name);
44
+		throw new LogicException('No such property: '.$name);
45 45
 	}
46 46
 
47 47
 	public static function setUpBeforeClass()
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	{
62 62
 		reset_instance();
63 63
 		CIPHPUnitTest::createCodeIgniterInstance();
64
-		$this->CI =& get_instance();
64
+		$this->CI = & get_instance();
65 65
 	}
66 66
 
67 67
 	protected function tearDown()
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 		$this->assertSame(
237 237
 			$code,
238 238
 			$actual,
239
-			'Status code is not ' . $code . ' but ' . $actual . '.'
239
+			'Status code is not '.$code.' but '.$actual.'.'
240 240
 		);
241 241
 	}
242 242
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 	 */
249 249
 	public function assertResponseHeader($name, $value)
250 250
 	{
251
-		$CI =& get_instance();
251
+		$CI = & get_instance();
252 252
 		$actual = $CI->output->get_header($name);
253 253
 
254 254
 		if ($actual === null)
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 	 */
273 273
 	public function assertResponseCookie($name, $value, $allow_duplicate = false)
274 274
 	{
275
-		$CI =& get_instance();
275
+		$CI = & get_instance();
276 276
 		$cookies = isset($CI->output->_cookies[$name])
277 277
 			? $CI->output->_cookies[$name] : null;
278 278
 
@@ -330,23 +330,23 @@  discard block
 block discarded – undo
330 330
 			$this->fail('redirect() is not called.');
331 331
 		}
332 332
 
333
-		if (! function_exists('site_url'))
333
+		if ( ! function_exists('site_url'))
334 334
 		{
335
-			$CI =& get_instance();
335
+			$CI = & get_instance();
336 336
 			$CI->load->helper('url');
337 337
 		}
338 338
 
339
-		if (! preg_match('#^(\w+:)?//#i', $uri))
339
+		if ( ! preg_match('#^(\w+:)?//#i', $uri))
340 340
 		{
341 341
 			$uri = site_url($uri);
342 342
 		}
343 343
 		$absolute_url = $uri;
344
-		$expected = 'Redirect to ' . $absolute_url;
344
+		$expected = 'Redirect to '.$absolute_url;
345 345
 
346 346
 		$this->assertSame(
347 347
 			$expected,
348 348
 			$status['redirect'],
349
-			'URL to redirect is not ' . $expected . ' but ' . $status['redirect'] . '.'
349
+			'URL to redirect is not '.$expected.' but '.$status['redirect'].'.'
350 350
 		);
351 351
 
352 352
 		if ($code !== null)
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
 			$this->assertSame(
355 355
 				$code,
356 356
 				$status['code'],
357
-				'Status code is not ' . $code . ' but ' . $status['code'] . '.'
357
+				'Status code is not '.$code.' but '.$status['code'].'.'
358 358
 			);
359 359
 		}
360 360
 	}
Please login to merge, or discard this patch.