Skip to content

Commit

Permalink
correct argument order for phpunit asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Apr 21, 2012
1 parent bc2cd00 commit 8a52a77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Test/Case/Network/CakeResponseTest.php
Expand Up @@ -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]',
Expand Down Expand Up @@ -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';
Expand All @@ -1002,7 +1002,7 @@ public function testCookieSettings() {
);

$result = $response->cookie();
$this->assertEquals($result, $expected);
$this->assertEquals($expected, $result);
}

}
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Utility/HashTest.php
Expand Up @@ -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,
Expand Down

0 comments on commit 8a52a77

Please sign in to comment.