use Symfony\Component\VarDumper\Dumper\DataDumperInterface;
use Symfony\Component\VarDumper\Dumper\ServerDumper;
class ServerDumperTest extends TestCase
{ private const VAR_DUMPER_SERVER = 'tcp://127.0.0.1:9913';
public function testDumpForwardsToWrappedDumperWhenServerIsUnavailable() { $wrappedDumper =
$this->
createMock(DataDumperInterface::
class);
$dumper =
new ServerDumper(self::VAR_DUMPER_SERVER,
$wrappedDumper);
$cloner =
new VarCloner();
$data =
$cloner->
cloneVar('foo'
);
$wrappedDumper->
expects($this->
once())->
method('dump'
)->
with($data);
$dumper->
dump($data);
} public function testDump() {