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