Correct assert param order

This commit is contained in:
euromark 2014-01-09 16:50:27 +01:00
parent 7f2e0a29a4
commit 738b34c2d0
2 changed files with 4 additions and 4 deletions

View file

@ -3753,7 +3753,7 @@ class ContainableBehaviorTest extends CakeTestCase {
'hasAndBelongsToMany' => array()
), $expected);
foreach ($expected as $binding => $expect) {
$this->assertEquals(array_keys($Model->$binding), $expect);
$this->assertEquals($expect, array_keys($Model->$binding));
}
}
}

View file

@ -657,13 +657,13 @@ class HttpSocketTest extends CakeTestCase {
$this->Socket->connected = true;
$this->Socket->request($request);
$result = $this->Socket->response['cookies'];
$expect = array(
$expected = array(
'foo' => array(
'value' => 'bar'
)
);
$this->assertEquals($expect, $result);
$this->assertEquals($this->Socket->config['request']['cookies']['www.cakephp.org'], $expect);
$this->assertEquals($expected, $result);
$this->assertEquals($expected, $this->Socket->config['request']['cookies']['www.cakephp.org']);
$this->assertFalse($this->Socket->connected);
}