Fix misnamed method calls.

This commit is contained in:
mark_story 2012-03-01 13:44:33 -05:00
parent 2231087ba3
commit 8becc4c985

View file

@ -276,7 +276,7 @@ class HashTest extends CakeTestCase {
}
/**
* Tests Set::flatten
* Tests Hash::flatten
*
* @return void
*/
@ -602,34 +602,34 @@ class HashTest extends CakeTestCase {
*/
public function testNumeric() {
$data = array('one');
$this->assertTrue(Set::numeric(array_keys($data)));
$this->assertTrue(Hash::numeric(array_keys($data)));
$data = array(1 => 'one');
$this->assertFalse(Set::numeric($data));
$this->assertFalse(Hash::numeric($data));
$data = array('one');
$this->assertFalse(Set::numeric($data));
$this->assertFalse(Hash::numeric($data));
$data = array('one' => 'two');
$this->assertFalse(Set::numeric($data));
$this->assertFalse(Hash::numeric($data));
$data = array('one' => 1);
$this->assertTrue(Set::numeric($data));
$this->assertTrue(Hash::numeric($data));
$data = array(0);
$this->assertTrue(Set::numeric($data));
$this->assertTrue(Hash::numeric($data));
$data = array('one', 'two', 'three', 'four', 'five');
$this->assertTrue(Set::numeric(array_keys($data)));
$this->assertTrue(Hash::numeric(array_keys($data)));
$data = array(1 => 'one', 2 => 'two', 3 => 'three', 4 => 'four', 5 => 'five');
$this->assertTrue(Set::numeric(array_keys($data)));
$this->assertTrue(Hash::numeric(array_keys($data)));
$data = array('1' => 'one', 2 => 'two', 3 => 'three', 4 => 'four', 5 => 'five');
$this->assertTrue(Set::numeric(array_keys($data)));
$this->assertTrue(Hash::numeric(array_keys($data)));
$data = array('one', 2 => 'two', 3 => 'three', 4 => 'four', 'a' => 'five');
$this->assertFalse(Set::numeric(array_keys($data)));
$this->assertFalse(Hash::numeric(array_keys($data)));
}
/**