示例#1
0
 public function testFromPArray()
 {
     $map = CMapObject::fromPArray(["one" => "a", "two" => "b", "three" => "c"]);
     $this->assertTrue($map->equals(m(["one" => "a", "two" => "b", "three" => "c"])));
 }
示例#2
0
/**
 * @ignore
 */
function oop_m($map)
{
    return is_oop_on() && is_array($map) ? CMapObject::fromPArray($map) : $map;
}