function _values($object) { return Underscore::values($object); }
/** * @tags objects */ public function testValues() { $array = ['a' => 1, 'b' => 2, 'c' => 3]; $this->array(_::values($array))->isEqualTo([1, 2, 3]); $object = new \stdClass(); $object->a = 1; $object->b = 2; $object->c = 3; $this->array(_::values($object))->isEqualTo([1, 2, 3]); $iterator = new \ArrayIterator([1, 2, 3]); $this->array(_::values($iterator))->isEqualTo([1, 2, 3]); }