setupVarDumper example

namespace Symfony\Component\VarDumper\Tests\Dumper;

use PHPUnit\Framework\TestCase;
use Symfony\Component\VarDumper\Cloner\VarCloner;
use Symfony\Component\VarDumper\Dumper\CliDumper;
use Symfony\Component\VarDumper\VarDumper;

class FunctionsTest extends TestCase
{
    public function testDumpWithoutArg()
    {
        $this->setupVarDumper();

        ob_start();
        $return = dump();
        ob_end_clean();

        $this->assertNull($return);
    }

    public function testDumpReturnsFirstArg()
    {
        $this->setupVarDumper();

        
Home | Imprint | This part of the site doesn't use cookies.