Completed
Push — master ( 6d9dad...9e1851 )
by Kenji
02:28
created
application/tests/_ci_phpunit_test/CIPHPUnitTestCase.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  */
10 10
 
11 11
 // Support PHPUnit 6.0
12
-if (! class_exists('PHPUnit_Framework_TestCase'))
12
+if ( ! class_exists('PHPUnit_Framework_TestCase'))
13 13
 {
14 14
 	class_alias('PHPUnit\Framework\TestCase', 'PHPUnit_Framework_TestCase');
15 15
 }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 			return $this->$name;
56 56
 		}
57 57
 
58
-		throw new LogicException('No such property: ' . $name);
58
+		throw new LogicException('No such property: '.$name);
59 59
 	}
60 60
 
61 61
 	public static function setUpBeforeClass()
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	{
79 79
 		reset_instance();
80 80
 		CIPHPUnitTest::createCodeIgniterInstance();
81
-		$this->CI =& get_instance();
81
+		$this->CI = & get_instance();
82 82
 	}
83 83
 
84 84
 	/**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	{
92 92
 		reset_instance();
93 93
 		$controller = new $classname;
94
-		$this->CI =& get_instance();
94
+		$this->CI = & get_instance();
95 95
 		return $controller;
96 96
 	}
97 97
 
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 		$this->assertSame(
314 314
 			$code,
315 315
 			$actual,
316
-			'Status code is not ' . $code . ' but ' . $actual . '.'
316
+			'Status code is not '.$code.' but '.$actual.'.'
317 317
 		);
318 318
 	}
319 319
 
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 	 */
326 326
 	public function assertResponseHeader($name, $value)
327 327
 	{
328
-		$CI =& get_instance();
328
+		$CI = & get_instance();
329 329
 		$actual = $CI->output->get_header($name);
330 330
 
331 331
 		if ($actual === null)
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
 	 */
350 350
 	public function assertResponseCookie($name, $value, $allow_duplicate = false)
351 351
 	{
352
-		$CI =& get_instance();
352
+		$CI = & get_instance();
353 353
 		$cookies = isset($CI->output->_cookies[$name])
354 354
 			? $CI->output->_cookies[$name] : null;
355 355
 
@@ -407,23 +407,23 @@  discard block
 block discarded – undo
407 407
 			$this->fail('redirect() is not called.');
408 408
 		}
409 409
 
410
-		if (! function_exists('site_url'))
410
+		if ( ! function_exists('site_url'))
411 411
 		{
412
-			$CI =& get_instance();
412
+			$CI = & get_instance();
413 413
 			$CI->load->helper('url');
414 414
 		}
415 415
 
416
-		if (! preg_match('#^(\w+:)?//#i', $uri))
416
+		if ( ! preg_match('#^(\w+:)?//#i', $uri))
417 417
 		{
418 418
 			$uri = site_url($uri);
419 419
 		}
420 420
 		$absolute_url = $uri;
421
-		$expected = 'Redirect to ' . $absolute_url;
421
+		$expected = 'Redirect to '.$absolute_url;
422 422
 
423 423
 		$this->assertSame(
424 424
 			$expected,
425 425
 			$status['redirect'],
426
-			'URL to redirect is not ' . $expected . ' but ' . $status['redirect'] . '.'
426
+			'URL to redirect is not '.$expected.' but '.$status['redirect'].'.'
427 427
 		);
428 428
 
429 429
 		if ($code !== null)
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
 			$this->assertSame(
432 432
 				$code,
433 433
 				$status['code'],
434
-				'Status code is not ' . $code . ' but ' . $status['code'] . '.'
434
+				'Status code is not '.$code.' but '.$status['code'].'.'
435 435
 			);
436 436
 		}
437 437
 	}
Please login to merge, or discard this patch.