/** * @preserveGlobalState disabled * @runInSeparateProcess */ public function test_show() { Hm_Msgs::add('msg two'); $this->assertTrue(strstr(flatten(join('', Hm_Msgs::show('return'))), 'msgtwo') !== false); ob_start(); Hm_Msgs::show(); $output = ob_get_contents(); ob_end_clean(); $this->assertTrue(strlen($output) > 0); Hm_Msgs::show('log'); }