mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix misnamed method calls.
This commit is contained in:
parent
2231087ba3
commit
8becc4c985
1 changed files with 11 additions and 11 deletions
|
@ -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)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue