Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0914988

Browse files
committed
Fixing tests
1 parent c2d5180 commit 0914988

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/Symfony/Component/VarDumper/Tests/Cloner/VarClonerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@ public function testPhp74()
520520
[maxDepth:Symfony\Component\VarDumper\Cloner\Data:private] => 20
521521
[maxItemsPerDepth:Symfony\Component\VarDumper\Cloner\Data:private] => -1
522522
[useRefHandles:Symfony\Component\VarDumper\Cloner\Data:private] => -1
523+
[context:Symfony\Component\VarDumper\Cloner\Data:private] => Array
524+
(
525+
)
526+
523527
)
524528

525529
EOTXT;

src/Symfony/Component/VarDumper/Tests/Fixtures/dumb-console.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
<?php
22

33
require __DIR__.'/../../../../../../vendor/autoload.php';
4+
require __DIR__.'/../../../Console/Application.php';
45

56
use Symfony\Component\Console\Application;
6-
use Symfony\Component\Console\Input\InputInterface;
7-
use Symfony\Component\Console\Output\OutputInterface;
87
use Symfony\Component\VarDumper\Cloner\VarCloner;
98
use Symfony\Component\VarDumper\Dumper\CliDumper;
109
use Symfony\Component\VarDumper\Dumper\ContextProvider\SourceContextProvider;
1110
use Symfony\Component\VarDumper\Dumper\ContextualizedDumper;
1211

1312
(new Application('app:dumb-command', '1.0.0'))
1413
->register('app:dumb-command')
15-
->setCode(function (InputInterface $input, OutputInterface $output) {
14+
->setCode(function () {
1615
$var = 'example';
1716
$wrappedDumper = new CliDumper('php://output');
1817
$wrappedDumper->setColors(true);
@@ -25,4 +24,5 @@
2524
})
2625
->getApplication()
2726
->setDefaultCommand('app:dumb-command', true)
28-
->run();
27+
->run()
28+
;

0 commit comments

Comments
 (0)