correct argument order for phpunit asserts

This commit is contained in:
euromark 2012-04-21 15:19:57 +02:00
parent bc2cd00123
commit 8a52a77cbc
2 changed files with 4 additions and 4 deletions

View file

@ -943,7 +943,7 @@ class CakeResponseTest extends CakeTestCase {
'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 @@ class CakeResponseTest extends CakeTestCase {
);
$result = $response->cookie();
$this->assertEquals($result, $expected);
$this->assertEquals($expected, $result);
$cookie = $expected['CakeTestCookie[Testing]'];
$cookie['value'] = 'test';
@ -1002,7 +1002,7 @@ class CakeResponseTest extends CakeTestCase {
);
$result = $response->cookie();
$this->assertEquals($result, $expected);
$this->assertEquals($expected, $result);
}
}

View file

@ -2107,7 +2107,7 @@ class HashTest extends CakeTestCase {
'Author' => array('id' => '3', 'user' => 'larry', 'password' => null),
)
);
$this->assertEquals($result, $expected);
$this->assertEquals($expected, $result);
$data = array(
'0/Post/id' => 1,