Correctly place expected result

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-01-28 14:40:58 +01:00
parent ed9e2b474d
commit 9b5c64e14d

View File

@ -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']);
}
}