/** * @preserveGlobalState disabled * @runInSeparateProcess */ public function test_str() { $this->assertEquals('string: test', Hm_Msgs::str('test')); $this->assertEquals('integer: 0', Hm_Msgs::str(0)); $this->assertEquals('double: 0.1', Hm_Msgs::str(0.1)); $this->assertEquals('array()', flatten(Hm_Msgs::str(array()))); $this->assertEquals('stdclassobject()', flatten(Hm_Msgs::str(new stdClass()))); }