예제 #1
0
 public function test_is_match_schema__needed_optional_extra()
 {
     $array = array('needed' => 1, 'optional' => 2, 'extra' => 4);
     $schema = array('needed', 'optional' => 3);
     $test = \UArray::isMatchSchema($array, $schema);
     $this->assertTrue($test);
 }