Skip to content
Browse files

correct argument order for phpunit asserts

  • Loading branch information...
1 parent bc2cd00 commit 8a52a77cbcdc9fd86ba5c34e1efd6709a2edb289 @dereuromark dereuromark committed
Showing with 4 additions and 4 deletions.
  1. +3 −3 lib/Cake/Test/Case/Network/CakeResponseTest.php
  2. +1 −1 lib/Cake/Test/Case/Utility/HashTest.php
View
6 lib/Cake/Test/Case/Network/CakeResponseTest.php
@@ -943,7 +943,7 @@ public function testCookieSettings() {
'secure' => false,
'httpOnly' => false);
$result = $response->cookie('CakeTestCookie[Testing]');
- $this->assertEquals($result, $expected);
+ $this->assertEquals($expected, $result);
$cookie = array(
'name' => 'CakeTestCookie[Testing2]',
@@ -975,7 +975,7 @@ public function testCookieSettings() {
);
$result = $response->cookie();
- $this->assertEquals($result, $expected);
+ $this->assertEquals($expected, $result);
$cookie = $expected['CakeTestCookie[Testing]'];
$cookie['value'] = 'test';
@@ -1002,7 +1002,7 @@ public function testCookieSettings() {
);
$result = $response->cookie();
- $this->assertEquals($result, $expected);
+ $this->assertEquals($expected, $result);
}
}
View
2 lib/Cake/Test/Case/Utility/HashTest.php
@@ -2107,7 +2107,7 @@ public function testExpand() {
'Author' => array('id' => '3', 'user' => 'larry', 'password' => null),
)
);
- $this->assertEquals($result, $expected);
+ $this->assertEquals($expected, $result);
$data = array(
'0/Post/id' => 1,

0 comments on commit 8a52a77

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