public function testArrayTypeVarDumpAndExport() { ob_start(); $t = new \Test\Vars(); $t->testArrayTypeVarDumpAndExport(array(1, 2, 3)); ob_clean(); }
public function testArrayTypeVarDumpAndExport() { $this->setOutputCallback(function ($output) { return str_replace(array("\n", ' '), '', $output); }); $this->expectOutputString('array(3){[0]=>int(1)[1]=>int(2)[2]=>int(3)}' . 'array(0=>1,1=>2,2=>3,)'); $t = new \Test\Vars(); $t->testArrayTypeVarDumpAndExport(array(1, 2, 3)); }