Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 public function __toArray($recursive = false)
 {
     if ($recursive) {
         return Util::convertStripeObjectToArray($this->_values);
     } else {
         return $this->_values;
     }
 }