Test all empty array with assertSame() because assertEquals() does not check the type.

This commit is contained in:
Ber Clausen 2012-10-26 19:18:05 -03:00
parent 870d77c89e
commit a7d9422c09
12 changed files with 27 additions and 27 deletions

View file

@ -181,7 +181,7 @@ class ControllerTaskTest extends CakeTestCase {
public function testDoHelpersNo() {
$this->Task->expects($this->any())->method('in')->will($this->returnValue('n'));
$result = $this->Task->doHelpers();
$this->assertEquals(array(), $result);
$this->assertSame(array(), $result);
}
/**
@ -218,7 +218,7 @@ class ControllerTaskTest extends CakeTestCase {
public function testDoComponentsNo() {
$this->Task->expects($this->any())->method('in')->will($this->returnValue('n'));
$result = $this->Task->doComponents();
$this->assertEquals(array(), $result);
$this->assertSame(array(), $result);
}
/**