public function testValues() { // from js $items = array('one' => 1, 'two' => 2); $this->assertEquals(array(1, 2), __::values((object) $items), 'can extract the values from an object'); // extra $this->assertEquals(array(1, 2), __::values($items)); $this->assertEquals(array(1), __::values(array(1))); // docs $this->assertEquals(array('moe', 40), __::values((object) array('name' => 'moe', 'age' => 40))); }