Skip to content

Commit 4336f45

Browse files
committed
Remove the leading - before each path and add a trailing / to all paths
1 parent 553066a commit 4336f45

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

src/Symfony/Bridge/Twig/Command/DebugCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
159159
}
160160
$firstNamespace = false;
161161
foreach ($paths as $path) {
162-
$rows[] = array($namespace, '- '.$path);
162+
$rows[] = array($namespace, $path.DIRECTORY_SEPARATOR);
163163
$namespace = '';
164164
}
165165
if (count($paths) > 1) {

src/Symfony/Bridge/Twig/Tests/Command/DebugCommandTest.php

+13-12
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,23 @@ public function testLineSeparatorInLoaderPaths()
3939
FilesystemLoader::MAIN_NAMESPACE => array('extractor', 'extractor'),
4040
));
4141
$ret = $tester->execute(array(), array('decorated' => false));
42+
$ds = DIRECTORY_SEPARATOR;
4243
$loaderPaths = <<<TXT
4344
Loader Paths
4445
------------
4546
46-
----------- -------------
47-
Namespace Paths
48-
----------- -------------
49-
@Acme - extractor
50-
- extractor
51-
52-
@!Acme - extractor
53-
- extractor
54-
55-
(None) - extractor
56-
- extractor
57-
----------- -------------
47+
----------- ------------
48+
Namespace Paths
49+
----------- ------------
50+
@Acme extractor$ds
51+
extractor$ds
52+
53+
@!Acme extractor$ds
54+
extractor$ds
55+
56+
(None) extractor$ds
57+
extractor$ds
58+
----------- ------------
5859
TXT;
5960

6061
$this->assertEquals(0, $ret, 'Returns 0 in case of success');

0 commit comments

Comments
 (0)