Skip to content
This repository
Browse code

correct argument order for phpunit asserts

  • Loading branch information...
commit 8a52a77cbcdc9fd86ba5c34e1efd6709a2edb289 1 parent bc2cd00
Mark authored April 21, 2012
6  lib/Cake/Test/Case/Network/CakeResponseTest.php
@@ -943,7 +943,7 @@ public function testCookieSettings() {
943 943
 			'secure' => false,
944 944
 			'httpOnly' => false);
945 945
 		$result = $response->cookie('CakeTestCookie[Testing]');
946  
-		$this->assertEquals($result, $expected);
  946
+		$this->assertEquals($expected, $result);
947 947
 
948 948
 		$cookie = array(
949 949
 			'name' => 'CakeTestCookie[Testing2]',
@@ -975,7 +975,7 @@ public function testCookieSettings() {
975 975
 		);
976 976
 
977 977
 		$result = $response->cookie();
978  
-		$this->assertEquals($result, $expected);
  978
+		$this->assertEquals($expected, $result);
979 979
 
980 980
 		$cookie = $expected['CakeTestCookie[Testing]'];
981 981
 		$cookie['value'] = 'test';
@@ -1002,7 +1002,7 @@ public function testCookieSettings() {
1002 1002
 		);
1003 1003
 
1004 1004
 		$result = $response->cookie();
1005  
-		$this->assertEquals($result, $expected);
  1005
+		$this->assertEquals($expected, $result);
1006 1006
 	}
1007 1007
 
1008 1008
 }
2  lib/Cake/Test/Case/Utility/HashTest.php
@@ -2107,7 +2107,7 @@ public function testExpand() {
2107 2107
 				'Author' => array('id' => '3', 'user' => 'larry', 'password' => null),
2108 2108
 			)
2109 2109
 		);
2110  
-		$this->assertEquals($result, $expected);
  2110
+		$this->assertEquals($expected, $result);
2111 2111
 
2112 2112
 		$data = array(
2113 2113
 			'0/Post/id' => 1,

0 notes on commit 8a52a77

Please sign in to comment.
Something went wrong with that request. Please try again.