12
12
namespace Symfony \Component \VarDumper \Tests \Command \Descriptor ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
- use Symfony \Component \Console \Formatter \OutputFormatterStyle ;
16
15
use Symfony \Component \Console \Output \BufferedOutput ;
17
16
use Symfony \Component \VarDumper \Cloner \Data ;
18
17
use Symfony \Component \VarDumper \Command \Descriptor \CliDescriptor ;
@@ -84,20 +83,7 @@ public static function provideContext()
84
83
'file_link ' => 'phpstorm://open?file=/Users/ogi/symfony/src/Symfony/Component/VarDumper/Tests/Command/Descriptor/CliDescriptorTest.php&line=30 ' ,
85
84
],
86
85
],
87
- method_exists (OutputFormatterStyle::class, 'setHref ' ) ?
88
- <<<TXT
89
- Received from client #1
90
- -----------------------
91
-
92
- -------- --------------------------------------------------------------------------------
93
- date Fri, 14 Dec 2018 16:17:48 +0000
94
- source CliDescriptorTest.php on line 30
95
- file src/Symfony/Component/VarDumper/Tests/Command/Descriptor/CliDescriptorTest.php
96
- -------- --------------------------------------------------------------------------------
97
-
98
- TXT
99
- :
100
- <<<TXT
86
+ <<<TXT
101
87
Received from client #1
102
88
-----------------------
103
89
@@ -107,29 +93,25 @@ public static function provideContext()
107
93
file src/Symfony/Component/VarDumper/Tests/Command/Descriptor/CliDescriptorTest.php
108
94
-------- --------------------------------------------------------------------------------
109
95
110
- Open source in your IDE/browser:
111
- phpstorm://open?file=/Users/ogi/symfony/src/Symfony/Component/VarDumper/Tests/Command/Descriptor/CliDescriptorTest.php&line=30
112
96
TXT
113
97
];
114
98
115
- if (method_exists (OutputFormatterStyle::class, 'setHref ' )) {
116
- yield 'source with hyperlink ' => [
117
- [
118
- 'source ' => [
119
- 'name ' => 'CliDescriptorTest.php ' ,
120
- 'line ' => 30 ,
121
- 'file_relative ' => 'src/Symfony/Component/VarDumper/Tests/Command/Descriptor/CliDescriptorTest.php ' ,
122
- 'file_link ' => 'phpstorm://open?file=/Users/ogi/symfony/src/Symfony/Component/VarDumper/Tests/Command/Descriptor/CliDescriptorTest.php&line=30 ' ,
123
- ],
99
+ yield 'source with hyperlink ' => [
100
+ [
101
+ 'source ' => [
102
+ 'name ' => 'CliDescriptorTest.php ' ,
103
+ 'line ' => 30 ,
104
+ 'file_relative ' => 'src/Symfony/Component/VarDumper/Tests/Command/Descriptor/CliDescriptorTest.php ' ,
105
+ 'file_link ' => 'phpstorm://open?file=/Users/ogi/symfony/src/Symfony/Component/VarDumper/Tests/Command/Descriptor/CliDescriptorTest.php&line=30 ' ,
124
106
],
125
- <<<TXT
107
+ ],
108
+ <<<TXT
126
109
%A
127
110
source \033]8;;phpstorm://open?file=/Users/ogi/symfony/src/Symfony/Component/VarDumper/Tests/Command/Descriptor/CliDescriptorTest.php&line=30 \033\CliDescriptorTest.php on line 30 \033]8;; \033%A
128
111
%A
129
112
TXT
130
- , true ,
131
- ];
132
- }
113
+ , true ,
114
+ ];
133
115
134
116
yield 'cli ' => [
135
117
[
0 commit comments