Skip to content

Commit 62838c2

Browse files
committed
Merge pull request #38 from puli/analysis-q1bEb5
Applied fixes from StyleCI
2 parents e4fe1ba + b4b766a commit 62838c2

14 files changed

+85
-85
lines changed

tests/Handler/BindCommandHandlerTest.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function testListAllBindings()
135135

136136
$args = self::$listCommand->parseArgs(new StringArgs(''));
137137

138-
$expected = <<<EOF
138+
$expected = <<<'EOF'
139139
The following bindings are currently enabled:
140140
141141
Package: vendor/root
@@ -241,7 +241,7 @@ public function testListRootBindings()
241241

242242
$args = self::$listCommand->parseArgs(new StringArgs('--root'));
243243

244-
$expected = <<<EOF
244+
$expected = <<<'EOF'
245245
The following bindings are currently enabled:
246246
247247
UUID Glob Type
@@ -287,7 +287,7 @@ public function testListPackageBindings()
287287

288288
$args = self::$listCommand->parseArgs(new StringArgs('--package=vendor/package1'));
289289

290-
$expected = <<<EOF
290+
$expected = <<<'EOF'
291291
The following bindings are currently enabled:
292292
293293
UUID Glob Type
@@ -331,7 +331,7 @@ public function testListRootAndPackageBindings()
331331

332332
$args = self::$listCommand->parseArgs(new StringArgs('--root --package=vendor/package1'));
333333

334-
$expected = <<<EOF
334+
$expected = <<<'EOF'
335335
The following bindings are currently enabled:
336336
337337
Package: vendor/root
@@ -412,7 +412,7 @@ public function testListMultiplePackageBindings()
412412

413413
$args = self::$listCommand->parseArgs(new StringArgs('--package=vendor/package1 --package=vendor/package2'));
414414

415-
$expected = <<<EOF
415+
$expected = <<<'EOF'
416416
The following bindings are currently enabled:
417417
418418
Package: vendor/package1
@@ -491,7 +491,7 @@ public function testListEnabledBindings()
491491

492492
$args = self::$listCommand->parseArgs(new StringArgs('--enabled'));
493493

494-
$expected = <<<EOF
494+
$expected = <<<'EOF'
495495
Package: vendor/root
496496
497497
UUID Glob Type
@@ -523,7 +523,7 @@ public function testListDisabledBindings()
523523

524524
$args = self::$listCommand->parseArgs(new StringArgs('--disabled'));
525525

526-
$expected = <<<EOF
526+
$expected = <<<'EOF'
527527
Package: vendor/root
528528
529529
UUID Glob Type
@@ -553,7 +553,7 @@ public function testListBindingsWithTypeNotFound()
553553

554554
$args = self::$listCommand->parseArgs(new StringArgs('--type-not-found'));
555555

556-
$expected = <<<EOF
556+
$expected = <<<'EOF'
557557
Package: vendor/root
558558
559559
UUID Glob Type
@@ -583,7 +583,7 @@ public function testListBindingsWithTypeNotEnabled()
583583

584584
$args = self::$listCommand->parseArgs(new StringArgs('--type-not-enabled'));
585585

586-
$expected = <<<EOF
586+
$expected = <<<'EOF'
587587
Package: vendor/root
588588
589589
UUID Glob Type
@@ -613,7 +613,7 @@ public function testListInvalidBindings()
613613

614614
$args = self::$listCommand->parseArgs(new StringArgs('--invalid'));
615615

616-
$expected = <<<EOF
616+
$expected = <<<'EOF'
617617
Package: vendor/root
618618
619619
UUID Glob Type
@@ -643,7 +643,7 @@ public function testListEnabledAndDisabledBindings()
643643

644644
$args = self::$listCommand->parseArgs(new StringArgs('--enabled --disabled'));
645645

646-
$expected = <<<EOF
646+
$expected = <<<'EOF'
647647
The following bindings are currently enabled:
648648
649649
Package: vendor/root
@@ -695,7 +695,7 @@ public function testListEnabledBindingsFromRoot()
695695

696696
$args = self::$listCommand->parseArgs(new StringArgs('--enabled --root'));
697697

698-
$expected = <<<EOF
698+
$expected = <<<'EOF'
699699
UUID Glob Type
700700
bb5a07 /root/enabled Foo
701701
cc9f22 /overridden Foo
@@ -714,7 +714,7 @@ public function testListEnabledBindingsFromPackage()
714714

715715
$args = self::$listCommand->parseArgs(new StringArgs('--enabled --package=vendor/package2'));
716716

717-
$expected = <<<EOF
717+
$expected = <<<'EOF'
718718
UUID Glob Type
719719
ddb655 /package2/enabled Foo
720720

@@ -763,7 +763,7 @@ public function testListNoBindings()
763763

764764
$statusCode = $this->handler->handleList($args, $this->io);
765765

766-
$expected = <<<EOF
766+
$expected = <<<'EOF'
767767
No bindings found. Use "puli bind <artifact> <type>" to bind an artifact to a type.
768768

769769
EOF;

tests/Handler/CatCommandHandlerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testListRelativePath()
6767

6868
$statusCode = $this->handler->handle($args, $this->io);
6969

70-
$expected = <<<EOF
70+
$expected = <<<'EOF'
7171
testA
7272
testB
7373
testC
@@ -91,7 +91,7 @@ public function testListAbsolutePath()
9191

9292
$statusCode = $this->handler->handle($args, $this->io);
9393

94-
$expected = <<<EOF
94+
$expected = <<<'EOF'
9595
testA
9696
testB
9797
testC
@@ -115,7 +115,7 @@ public function testListAbsoluteFilePath()
115115

116116
$statusCode = $this->handler->handle($args, $this->io);
117117

118-
$expected = <<<EOF
118+
$expected = <<<'EOF'
119119
testA
120120

121121
EOF;

tests/Handler/ConfigCommandHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function testListParsed()
139139

140140
$statusCode = $this->handler->handleList($args, $this->io);
141141

142-
$expected = <<<EOF
142+
$expected = <<<'EOF'
143143
Config Key User Value Effective Value
144144
key value value
145145

@@ -185,7 +185,7 @@ public function testShowParsed()
185185

186186
$statusCode = $this->handler->handleShow($args, $this->io);
187187

188-
$expected = <<<EOF
188+
$expected = <<<'EOF'
189189
value
190190

191191
EOF;

tests/Handler/FindCommandHandlerTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testFindByRelativePath()
8585

8686
$statusCode = $this->handler->handle($args, $this->io);
8787

88-
$expected = <<<EOF
88+
$expected = <<<'EOF'
8989
FileResource /path/file
9090
GenericResource /path/resource1
9191
GenericResource /path/resource2
@@ -114,7 +114,7 @@ public function testFindByAbsolutePath()
114114

115115
$statusCode = $this->handler->handle($args, $this->io);
116116

117-
$expected = <<<EOF
117+
$expected = <<<'EOF'
118118
FileResource /path/file
119119
GenericResource /path/resource1
120120
GenericResource /path/resource2
@@ -143,7 +143,7 @@ public function testFindByPathAndLanguage()
143143

144144
$statusCode = $this->handler->handle($args, $this->io);
145145

146-
$expected = <<<EOF
146+
$expected = <<<'EOF'
147147
FileResource /path/file
148148
GenericResource /path/resource1
149149
GenericResource /path/resource2
@@ -172,7 +172,7 @@ public function testFindByName()
172172

173173
$statusCode = $this->handler->handle($args, $this->io);
174174

175-
$expected = <<<EOF
175+
$expected = <<<'EOF'
176176
FileResource /path/file
177177
GenericResource /path/resource1
178178
GenericResource /path/resource2
@@ -214,7 +214,7 @@ public function testFindByClass()
214214

215215
$statusCode = $this->handler->handle($args, $this->io);
216216

217-
$expected = <<<EOF
217+
$expected = <<<'EOF'
218218
GenericResource /path/resource1
219219
GenericResource /path/resource2
220220

@@ -255,7 +255,7 @@ public function testFindByBindingType()
255255
$statusCode = $this->handler->handle($args, $this->io);
256256

257257
// Result is sorted by path
258-
$expected = <<<EOF
258+
$expected = <<<'EOF'
259259
FileResource /path1/file
260260
GenericResource /path1/resource1
261261
GenericResource /path2/resource2
@@ -284,7 +284,7 @@ public function testFindByPathAndClass()
284284

285285
$statusCode = $this->handler->handle($args, $this->io);
286286

287-
$expected = <<<EOF
287+
$expected = <<<'EOF'
288288
GenericResource /path/resource1
289289
GenericResource /path/resource2
290290

@@ -325,7 +325,7 @@ public function testFindByBindingTypeAndClass()
325325
$statusCode = $this->handler->handle($args, $this->io);
326326

327327
// Result is sorted by path
328-
$expected = <<<EOF
328+
$expected = <<<'EOF'
329329
GenericResource /path1/resource1
330330
GenericResource /path2/resource2
331331

@@ -379,7 +379,7 @@ public function testFindByPathAndBindingType()
379379

380380
$statusCode = $this->handler->handle($args, $this->io);
381381

382-
$expected = <<<EOF
382+
$expected = <<<'EOF'
383383
FileResource /path/file
384384
GenericResource /path/resource1
385385
GenericResource /path/resource2

tests/Handler/LsCommandHandlerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testListRelativePath()
6868

6969
$statusCode = $this->handler->handle($args, $this->io);
7070

71-
$expected = <<<EOF
71+
$expected = <<<'EOF'
7272
file resource1 resource2
7373

7474
EOF;
@@ -90,7 +90,7 @@ public function testListAbsolutePath()
9090

9191
$statusCode = $this->handler->handle($args, $this->io);
9292

93-
$expected = <<<EOF
93+
$expected = <<<'EOF'
9494
file resource1 resource2
9595

9696
EOF;
@@ -112,7 +112,7 @@ public function testListNoPath()
112112

113113
$statusCode = $this->handler->handle($args, $this->io);
114114

115-
$expected = <<<EOF
115+
$expected = <<<'EOF'
116116
file resource1 resource2
117117

118118
EOF;
@@ -153,7 +153,7 @@ public function testListLong()
153153

154154
$statusCode = $this->handler->handle($args, $this->io);
155155

156-
$expected = <<<EOF
156+
$expected = <<<'EOF'
157157
TestDirectory 12 Jan 1 1970 dir1
158158
TestFile 34 Jan 1 1970 file1
159159
TestFile 56 Jan 1 1970 file2

tests/Handler/MapCommandHandlerTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function testListAllMappings()
100100

101101
$statusCode = $this->handler->handleList($args, $this->io);
102102

103-
$expected = <<<EOF
103+
$expected = <<<'EOF'
104104
The following path mappings are currently enabled:
105105
106106
Package: vendor/root
@@ -171,7 +171,7 @@ public function testListRootPackageMappings()
171171

172172
$statusCode = $this->handler->handleList($args, $this->io);
173173

174-
$expected = <<<EOF
174+
$expected = <<<'EOF'
175175
The following path mappings are currently enabled:
176176
177177
Puli Path Real Path(s)
@@ -210,7 +210,7 @@ public function testListPackageMappings()
210210

211211
$statusCode = $this->handler->handleList($args, $this->io);
212212

213-
$expected = <<<EOF
213+
$expected = <<<'EOF'
214214
The following path mappings are currently enabled:
215215
216216
Puli Path Real Path(s)
@@ -257,7 +257,7 @@ public function testListRootAndPackageMappings()
257257

258258
$statusCode = $this->handler->handleList($args, $this->io);
259259

260-
$expected = <<<EOF
260+
$expected = <<<'EOF'
261261
The following path mappings are currently enabled:
262262
263263
Package: vendor/root
@@ -318,7 +318,7 @@ public function testListMultiplePackageMappings()
318318

319319
$statusCode = $this->handler->handleList($args, $this->io);
320320

321-
$expected = <<<EOF
321+
$expected = <<<'EOF'
322322
The following path mappings are currently enabled:
323323
324324
Package: vendor/package1
@@ -379,7 +379,7 @@ public function testListEnabledMappings()
379379

380380
$statusCode = $this->handler->handleList($args, $this->io);
381381

382-
$expected = <<<EOF
382+
$expected = <<<'EOF'
383383
Package: vendor/root
384384
385385
Puli Path Real Path(s)
@@ -411,7 +411,7 @@ public function testListNotFoundMappings()
411411

412412
$statusCode = $this->handler->handleList($args, $this->io);
413413

414-
$expected = <<<EOF
414+
$expected = <<<'EOF'
415415
Package: vendor/root
416416
417417
Puli Path Real Path(s)
@@ -443,7 +443,7 @@ public function testListConflictingMappings()
443443

444444
$statusCode = $this->handler->handleList($args, $this->io);
445445

446-
$expected = <<<EOF
446+
$expected = <<<'EOF'
447447
Conflicting path: /conflict1
448448
449449
Mapped by the following mappings:
@@ -477,7 +477,7 @@ public function testListEnabledAndNotFoundMappings()
477477

478478
$statusCode = $this->handler->handleList($args, $this->io);
479479

480-
$expected = <<<EOF
480+
$expected = <<<'EOF'
481481
The following path mappings are currently enabled:
482482
483483
Package: vendor/root
@@ -528,7 +528,7 @@ public function testListEnabledMappingsFromRoot()
528528

529529
$statusCode = $this->handler->handleList($args, $this->io);
530530

531-
$expected = <<<EOF
531+
$expected = <<<'EOF'
532532
Puli Path Real Path(s)
533533
/root/enabled res, assets
534534

@@ -547,7 +547,7 @@ public function testListEnabledMappingsFromPackage()
547547

548548
$statusCode = $this->handler->handleList($args, $this->io);
549549

550-
$expected = <<<EOF
550+
$expected = <<<'EOF'
551551
Puli Path Real Path(s)
552552
/package1/enabled res, @vendor/package2:res
553553

@@ -568,7 +568,7 @@ public function testListNoMappings()
568568

569569
$statusCode = $this->handler->handleList($args, $this->io);
570570

571-
$expected = <<<EOF
571+
$expected = <<<'EOF'
572572
No path mappings. Use "puli map <path> <file>" to map a Puli path to a file or directory.
573573

574574
EOF;

0 commit comments

Comments
 (0)