public function testContextAware() { #if console it should render Text mode $output = Stop::it('String', AbstractDumper::VAR_DUMP, false, false, true); $this->assertContains('string(6) "String"', $output, 'var_dump the variable'); $this->assertContains('------------------------', $output, 'Is Text Mode'); }
/** * show variable type without content * * @param $var * @param bool $continue * @param bool $hide * @param bool $return * @return mixed */ function stop_type($var, $continue = false, $hide = false, $return = false) { return Stop::it($var, Dumper\AbstractDumper::GET_TYPE, $continue, $hide, $return); }