public testVarDumpArrayAndString ( ) |
public function testVarDumpArrayAndString()
{
$this->setOutputCallback(function ($output) {
/* To prevent differences between PHP version */
return str_replace(array("\n", ' '), '', $output);
});
$this->expectOutputString('array(3){' . '[0]=>int(1)' . '[1]=>string(5)"world"' . '[2]=>bool(false)}' . 'string(5)"hello"');
$t = new \Test\Vars();
$t->testVarDump();
}