From 9b5c64e14d9b898fee82b6908ce4322c6630a412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 28 Jan 2016 14:40:58 +0100 Subject: [PATCH] Correctly place expected result MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- test/classes/PMA_Advisor_test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/classes/PMA_Advisor_test.php b/test/classes/PMA_Advisor_test.php index e5cf9bb934..8d65e40f8e 100644 --- a/test/classes/PMA_Advisor_test.php +++ b/test/classes/PMA_Advisor_test.php @@ -78,10 +78,10 @@ class Advisor_test extends PHPUnit_Framework_TestCase $advisor->variables['value'] = 0; $advisor->addRule('fired', $rule); if (isset($advisor->runResult['errors']) || !is_null($error)) { - $this->assertEquals($advisor->runResult['errors'], array($error)); + $this->assertEquals(array($error), $advisor->runResult['errors']); } if (isset($advisor->runResult['fired']) || $expected != array()) { - $this->assertEquals($advisor->runResult['fired'], array($expected)); + $this->assertEquals(array($expected), $advisor->runResult['fired']); } }