Extension\VarsTest::testVarExport PHP Метод

testVarExport() публичный Метод

public testVarExport ( )
    public function testVarExport()
    {
        $this->setOutputCallback(function ($output) {
            return str_replace(array("\n", ' '), '', $output);
        });
        $this->expectOutputString("array(0=>1,1=>'world',2=>false,)'hello'");
        $t = new \Test\Vars();
        $this->assertSame($t->testVarExport(), "'hello'");
    }