public function setUp() { $this->data = new \stdClass(); $this->data->name = 'Trixie'; $this->data->type = 'pixie'; $this->data->magic = new \stdClass(); $this->data->magic->type = 'air'; $this->data->magic->level = 5; $this->data->trees = array('Oak', 'Pine'); parent::setUp(); }
public function setUp() { $this->data = array(new \stdClass(), array('Oak', 'Pine'), 'test'); $this->data[0]->name = 'Pixie'; parent::setUp(); }