Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

correct argument order for phpunit asserts

  • Loading branch information...
commit 8a52a77cbcdc9fd86ba5c34e1efd6709a2edb289 1 parent bc2cd00
@dereuromark dereuromark authored
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,
Please sign in to comment.
Something went wrong with that request. Please try again.