public function testIsList() { $list = array(5, 'nstaoush', array()); $this->assertTrue(Util::isList($list)); $notlist = array(5, 'nstaoush', array(), 'bar' => 'baz'); $this->assertFalse(Util::isList($notlist)); }
public function __toArray($recursive = false) { if ($recursive) { return Util::convertStripeObjectToArray($this->_values); } else { return $this->_values; } }