Correctly place expected result
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
ed9e2b474d
commit
9b5c64e14d
@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user