File tree 2 files changed +8
-4
lines changed
src/Symfony/Component/VarDumper/Tests
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -520,6 +520,10 @@ public function testPhp74()
520
520
[maxDepth:Symfony\Component\VarDumper\Cloner\Data:private] => 20
521
521
[maxItemsPerDepth:Symfony\Component\VarDumper\Cloner\Data:private] => -1
522
522
[useRefHandles:Symfony\Component\VarDumper\Cloner\Data:private] => -1
523
+ [context:Symfony\Component\VarDumper\Cloner\Data:private] => Array
524
+ (
525
+ )
526
+
523
527
)
524
528
525
529
EOTXT;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
require __DIR__ .'/../../../../../../vendor/autoload.php ' ;
4
+ require __DIR__ .'/../../../Console/Application.php ' ;
4
5
5
6
use Symfony \Component \Console \Application ;
6
- use Symfony \Component \Console \Input \InputInterface ;
7
- use Symfony \Component \Console \Output \OutputInterface ;
8
7
use Symfony \Component \VarDumper \Cloner \VarCloner ;
9
8
use Symfony \Component \VarDumper \Dumper \CliDumper ;
10
9
use Symfony \Component \VarDumper \Dumper \ContextProvider \SourceContextProvider ;
11
10
use Symfony \Component \VarDumper \Dumper \ContextualizedDumper ;
12
11
13
12
(new Application ('app:dumb-command ' , '1.0.0 ' ))
14
13
->register ('app:dumb-command ' )
15
- ->setCode (function (InputInterface $ input , OutputInterface $ output ) {
14
+ ->setCode (function () {
16
15
$ var = 'example ' ;
17
16
$ wrappedDumper = new CliDumper ('php://output ' );
18
17
$ wrappedDumper ->setColors (true );
25
24
})
26
25
->getApplication ()
27
26
->setDefaultCommand ('app:dumb-command ' , true )
28
- ->run ();
27
+ ->run ()
28
+ ;
You can’t perform that action at this time.
0 commit comments