From 8a52a77cbcdc9fd86ba5c34e1efd6709a2edb289 Mon Sep 17 00:00:00 2001 From: euromark Date: Sat, 21 Apr 2012 15:19:57 +0200 Subject: [PATCH] correct argument order for phpunit asserts --- lib/Cake/Test/Case/Network/CakeResponseTest.php | 6 +++--- lib/Cake/Test/Case/Utility/HashTest.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Cake/Test/Case/Network/CakeResponseTest.php b/lib/Cake/Test/Case/Network/CakeResponseTest.php index b3df124f6..91be19de8 100644 --- a/lib/Cake/Test/Case/Network/CakeResponseTest.php +++ b/lib/Cake/Test/Case/Network/CakeResponseTest.php @@ -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); } } diff --git a/lib/Cake/Test/Case/Utility/HashTest.php b/lib/Cake/Test/Case/Utility/HashTest.php index 5305cb889..e4647e1bd 100644 --- a/lib/Cake/Test/Case/Utility/HashTest.php +++ b/lib/Cake/Test/Case/Utility/HashTest.php @@ -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,