예제 #1
0
파일: VarsTest.php 프로젝트: NumbDai/zephir
 public function testArrayTypeVarDumpAndExport()
 {
     ob_start();
     $t = new \Test\Vars();
     $t->testArrayTypeVarDumpAndExport(array(1, 2, 3));
     ob_clean();
 }
예제 #2
0
파일: VarsTest.php 프로젝트: phalcon/zephir
 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));
 }