public function test_array_map_deep() { $input = array('<', 'abc', '>', 'def', array('&', 'test', '123'), (object) array('hey', '<>')); $expect = array('<', 'abc', '>', 'def', array('&', 'test', '123'), (object) array('hey', '<>')); $this->assertEquals($expect, util::array_map_deep($input, 'htmlentities')); }