/** * Extracts and returns the values from a map, as an array. * * @return CArrayObject The map's values. */ public function values() { return CArrayObject::fromSplArray(CMap::values($this->m_map)); }
public function testValues() { $map = ["one" => "a", "two" => "b", "three" => "c"]; $values = CMap::values($map); $this->assertTrue(CArray::equals($values, CArray::fromElements("a", "b", "c"))); }