Пример #1
0
 /**
  * Test for Schwaen\Stdlib\ArrayUtils::hasStringKeys
  */
 public function testHasStringKeys()
 {
     $array1 = ['a' => true, 2 => true];
     $array2 = ['test', 'test', 'test'];
     $this->assertEquals(true, ArrayUtils::hasStringKeys($array1, false, false));
     $this->assertEquals(false, ArrayUtils::hasStringKeys($array1, true, false));
     $this->assertEquals(false, ArrayUtils::hasStringKeys($array2));
 }