Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3860d68

Browse filesBrowse files
committed
Merge branch '4.2'
* 4.2: update years in license files Fix: Adjust DocBlock \"ParserTest->getParserTestData()\" -> only some more tests access the container getting it from the kernel Replace slave and master by replica and primary Fix erasing cookies issue [Lock] Pedantic improvements for lock [EventDispatcher] Fixed phpdoc on interface update year in license files [VarExporter] fix exporting array indexes [SecurityBundle] Fix traceable voters [Console] Fix help text for single command applications Fix random test failure on lock improve error message when using test client without the BrowserKit component Fixed minor typos in an error message [Event Dispatcher] fixed 29703: TraceableEventDispatcher reset now sets callStack to null with test to dispatch after reset. Fixed minor typos Fix: Method can also return null [Stopwatch] Fixed phpdoc for category name
2 parents 9634a8f + 36110b1 commit 3860d68
Copy full SHA for 3860d68

File tree

Expand file treeCollapse file tree

88 files changed

+205
-134
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

88 files changed

+205
-134
lines changed

‎LICENSE

Copy file name to clipboardExpand all lines: LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Bridge/Doctrine/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Bridge/Doctrine/RegistryInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/RegistryInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function getEntityManagers();
5252
* it makes sense to get a new one to replace the closed one.
5353
*
5454
* Be warned that you will get a brand new entity manager as
55-
* the existing one is not useable anymore. This means that any
55+
* the existing one is not usable anymore. This means that any
5656
* other object with a dependency on this entity manager will
5757
* hold an obsolete reference. You can inject the registry instead
5858
* to avoid this problem.

‎src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function testFixManagersAutoMappingsWithTwoAutomappings()
6464
);
6565

6666
$bundles = array(
67-
'FristBundle' => 'My\FristBundle',
67+
'FirstBundle' => 'My\FirstBundle',
6868
'SecondBundle' => 'My\SecondBundle',
6969
);
7070

@@ -98,7 +98,7 @@ public function getAutomappingData()
9898
array(),
9999
array(
100100
'mappings' => array(
101-
'FristBundle' => array(
101+
'FirstBundle' => array(
102102
'mapping' => true,
103103
'is_bundle' => true,
104104
),
@@ -132,7 +132,7 @@ public function getAutomappingData()
132132
),
133133
array(
134134
'mappings' => array(
135-
'FristBundle' => array(
135+
'FirstBundle' => array(
136136
'mapping' => true,
137137
'is_bundle' => true,
138138
),
@@ -153,7 +153,7 @@ public function testFixManagersAutoMappings(array $originalEm1, array $originalE
153153
);
154154

155155
$bundles = array(
156-
'FristBundle' => 'My\FristBundle',
156+
'FirstBundle' => 'My\FirstBundle',
157157
'SecondBundle' => 'My\SecondBundle',
158158
);
159159

‎src/Symfony/Bridge/Monolog/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Bridge/PhpUnit/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014-2018 Fabien Potencier
1+
Copyright (c) 2014-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Bridge/ProxyManager/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/ProxyManager/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Bridge/Twig/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Bundle/DebugBundle/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/DebugBundle/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014-2018 Fabien Potencier
1+
Copyright (c) 2014-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
9696
$targetArg = rtrim($input->getArgument('target'), '/');
9797

9898
if (!$targetArg) {
99-
$targetArg = $this->getPublicDirectory($this->getContainer());
99+
$targetArg = $this->getPublicDirectory($kernel->getContainer());
100100
}
101101

102102
if (!is_dir($targetArg)) {

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
2222
use Symfony\Bundle\FrameworkBundle\Routing\AnnotatedRouteControllerLoader;
2323
use Symfony\Bundle\FullStack;
24+
use Symfony\Component\BrowserKit\Client;
2425
use Symfony\Component\Cache\Adapter\AbstractAdapter;
2526
use Symfony\Component\Cache\Adapter\AdapterInterface;
2627
use Symfony\Component\Cache\Adapter\ArrayAdapter;
@@ -198,6 +199,10 @@ public function load(array $configs, ContainerBuilder $container)
198199

199200
if (!empty($config['test'])) {
200201
$loader->load('test.xml');
202+
203+
if (!class_exists(Client::class)) {
204+
$container->removeDefinition('test.client');
205+
}
201206
}
202207

203208
if ($this->isConfigEnabled($container, $config['session'])) {

‎src/Symfony/Bundle/FrameworkBundle/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Bundle\FrameworkBundle\Test;
1313

1414
use Symfony\Bundle\FrameworkBundle\Client;
15+
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
1516

1617
/**
1718
* WebTestCase is the base class for functional tests.
@@ -32,7 +33,12 @@ protected static function createClient(array $options = array(), array $server =
3233
{
3334
$kernel = static::bootKernel($options);
3435

35-
$client = $kernel->getContainer()->get('test.client');
36+
try {
37+
$client = $kernel->getContainer()->get('test.client');
38+
} catch (ServiceNotFoundException $e) {
39+
throw new \LogicException('You cannot create the client used in functional tests if the BrowserKit component is not available. Try running "composer require symfony/browser-kit".');
40+
}
41+
3642
$client->setServerParameters($server);
3743

3844
return $client;

‎src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/DependencyInjection/Compiler/AddSecurityVotersPass.php
+8-7Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function process(ContainerBuilder $container)
4444
}
4545

4646
$debug = $container->getParameter('kernel.debug');
47-
47+
$voterServices = array();
4848
foreach ($voters as $voter) {
4949
$voterServiceId = (string) $voter;
5050
$definition = $container->getDefinition($voterServiceId);
@@ -56,17 +56,18 @@ public function process(ContainerBuilder $container)
5656
}
5757

5858
if ($debug) {
59-
// Decorate original voters with TraceableVoter
60-
$debugVoterServiceId = 'debug.security.voter.'.$voterServiceId;
59+
$voterServices[] = new Reference($debugVoterServiceId = 'debug.security.voter.'.$voterServiceId);
60+
6161
$container
6262
->register($debugVoterServiceId, TraceableVoter::class)
63-
->setDecoratedService($voterServiceId)
64-
->addArgument(new Reference($debugVoterServiceId.'.inner'))
63+
->addArgument($voter)
6564
->addArgument(new Reference('event_dispatcher'));
65+
} else {
66+
$voterServices[] = $voter;
6667
}
6768
}
6869

69-
$adm = $container->getDefinition('security.access.decision_manager');
70-
$adm->replaceArgument(0, new IteratorArgument($voters));
70+
$container->getDefinition('security.access.decision_manager')
71+
->replaceArgument(0, new IteratorArgument($voterServices));
7172
}
7273
}

‎src/Symfony/Bundle/SecurityBundle/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddSecurityVotersPassTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Compiler/AddSecurityVotersPassTest.php
+8-14Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ public function testThatSecurityVotersAreProcessedInPriorityOrder()
7272
$this->assertCount(4, $refs);
7373
}
7474

75-
/**
76-
* Test that in debug mode, voters are correctly decorated.
77-
*/
78-
public function testThatVotersAreDecoratedInDebugMode(): void
75+
public function testThatVotersAreTraceableInDebugMode(): void
7976
{
8077
$container = new ContainerBuilder();
8178

@@ -96,21 +93,18 @@ public function testThatVotersAreDecoratedInDebugMode(): void
9693
$compilerPass->process($container);
9794

9895
$def1 = $container->getDefinition('debug.security.voter.voter1');
99-
$this->assertEquals(array('voter1', null, 0), $def1->getDecoratedService(), 'voter1: wrong return from getDecoratedService');
100-
$this->assertEquals(new Reference('debug.security.voter.voter1.inner'), $def1->getArgument(0), 'voter1: wrong decorator argument');
96+
$this->assertNull($def1->getDecoratedService(), 'voter1: should not be decorated');
97+
$this->assertEquals(new Reference('voter1'), $def1->getArgument(0), 'voter1: wrong argument');
10198

10299
$def2 = $container->getDefinition('debug.security.voter.voter2');
103-
$this->assertEquals(array('voter2', null, 0), $def2->getDecoratedService(), 'voter2: wrong return from getDecoratedService');
104-
$this->assertEquals(new Reference('debug.security.voter.voter2.inner'), $def2->getArgument(0), 'voter2: wrong decorator argument');
100+
$this->assertNull($def2->getDecoratedService(), 'voter2: should not be decorated');
101+
$this->assertEquals(new Reference('voter2'), $def2->getArgument(0), 'voter2: wrong argument');
105102

106103
$voters = $container->findTaggedServiceIds('security.voter');
107104
$this->assertCount(2, $voters, 'Incorrect count of voters');
108105
}
109106

110-
/**
111-
* Test that voters are not decorated if the application is not in debug mode.
112-
*/
113-
public function testThatVotersAreNotDecoratedWithoutDebugMode(): void
107+
public function testThatVotersAreNotTraceableWithoutDebugMode(): void
114108
{
115109
$container = new ContainerBuilder();
116110
$container->setParameter('kernel.debug', false);
@@ -130,8 +124,8 @@ public function testThatVotersAreNotDecoratedWithoutDebugMode(): void
130124
$compilerPass = new AddSecurityVotersPass();
131125
$compilerPass->process($container);
132126

133-
$this->assertFalse($container->has('debug.security.voter.voter1'), 'voter1 should not be decorated');
134-
$this->assertFalse($container->has('debug.security.voter.voter2'), 'voter2 should not be decorated');
127+
$this->assertFalse($container->has('debug.security.voter.voter1'), 'voter1 should not be traced');
128+
$this->assertFalse($container->has('debug.security.voter.voter2'), 'voter2 should not be traced');
135129
}
136130

137131
/**

‎src/Symfony/Bundle/TwigBundle/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Bundle/WebProfilerBundle/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Bundle/WebServerBundle/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebServerBundle/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Component/Asset/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Component/Asset/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Component/BrowserKit/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Component/BrowserKit/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Component/Cache/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016-2018 Fabien Potencier
1+
Copyright (c) 2016-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Component/Config/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Component/Console/Application.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Application.php
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Application
7575
private $dispatcher;
7676
private $terminal;
7777
private $defaultCommand;
78-
private $singleCommand;
78+
private $singleCommand = false;
7979
private $initialized;
8080

8181
/**
@@ -1098,6 +1098,14 @@ public function setDefaultCommand($commandName, $isSingleCommand = false)
10981098
return $this;
10991099
}
11001100

1101+
/**
1102+
* @internal
1103+
*/
1104+
public function isSingleCommand()
1105+
{
1106+
return $this->singleCommand;
1107+
}
1108+
11011109
private function splitStringByWidth($string, $width)
11021110
{
11031111
// str_split is not suitable for multi-byte characters, we should use preg_split to get char array properly.

‎src/Symfony/Component/Console/Command/Command.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Command/Command.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,14 +525,15 @@ public function getHelp()
525525
public function getProcessedHelp()
526526
{
527527
$name = $this->name;
528+
$isSingleCommand = $this->application && $this->application->isSingleCommand();
528529

529530
$placeholders = array(
530531
'%command.name%',
531532
'%command.full_name%',
532533
);
533534
$replacements = array(
534535
$name,
535-
$_SERVER['PHP_SELF'].' '.$name,
536+
$isSingleCommand ? $_SERVER['PHP_SELF'] : $_SERVER['PHP_SELF'].' '.$name,
536537
);
537538

538539
return str_replace($placeholders, $replacements, $this->getHelp() ?: $this->getDescription());

‎src/Symfony/Component/Console/Helper/ProcessHelper.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Helper/ProcessHelper.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function run(OutputInterface $output, $cmd, $error = null, callable $call
6161
$process = $cmd[0];
6262
unset($cmd[0]);
6363
} else {
64-
throw new \InvalidArgumentException(sprintf('Invalid command provided to "%s()": the command should an array whose first is element is either the path to the binary to run of a "Process" object.', __METHOD__));
64+
throw new \InvalidArgumentException(sprintf('Invalid command provided to "%s()": the command should be an array whose first element is either the path to the binary to run or a "Process" object.', __METHOD__));
6565
}
6666

6767
if ($verbosity <= $output->getVerbosity()) {

‎src/Symfony/Component/Console/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Component/Console/Tests/Command/CommandTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Tests/Command/CommandTest.php
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,14 @@ public function testGetProcessedHelp()
166166
$command = new \TestCommand();
167167
$command->setHelp('');
168168
$this->assertContains('description', $command->getProcessedHelp(), '->getProcessedHelp() falls back to the description');
169+
170+
$command = new \TestCommand();
171+
$command->setHelp('The %command.name% command does... Example: php %command.full_name%.');
172+
$application = new Application();
173+
$application->add($command);
174+
$application->setDefaultCommand('namespace:name', true);
175+
$this->assertContains('The namespace:name command does...', $command->getProcessedHelp(), '->getProcessedHelp() replaces %command.name% correctly in single command applications');
176+
$this->assertNotContains('%command.full_name%', $command->getProcessedHelp(), '->getProcessedHelp() replaces %command.full_name% in single command applications');
169177
}
170178

171179
public function testGetSetAliases()

‎src/Symfony/Component/CssSelector/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Component/CssSelector/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Component/CssSelector/Tests/Parser/ParserTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/CssSelector/Tests/Parser/ParserTest.php
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ public function getParserTestData()
120120
array('a[name]', array('Attribute[Element[a][name]]')),
121121
array("a[ name\t]", array('Attribute[Element[a][name]]')),
122122
array('a [name]', array('CombinedSelector[Element[a] <followed> Attribute[Element[*][name]]]')),
123+
array('[name="foo"]', array("Attribute[Element[*][name = 'foo']]")),
124+
array("[name='foo[1]']", array("Attribute[Element[*][name = 'foo[1]']]")),
125+
array("[name='foo[0][bar]']", array("Attribute[Element[*][name = 'foo[0][bar]']]")),
123126
array('a[rel="include"]', array("Attribute[Element[a][rel = 'include']]")),
124127
array('a[rel = include]', array("Attribute[Element[a][rel = 'include']]")),
125128
array("a[hreflang |= 'en']", array("Attribute[Element[a][hreflang |= 'en']]")),

‎src/Symfony/Component/Debug/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Component/Debug/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Component/DependencyInjection/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ private function parseDefinition($id, $service, $file, array $defaults)
565565
* @param string $id A service identifier
566566
* @param string $file A parsed file
567567
*
568-
* @throws InvalidArgumentException When errors are occuried
568+
* @throws InvalidArgumentException When errors occur
569569
*
570570
* @return string|array A parsed callable
571571
*/

‎src/Symfony/Component/DomCrawler/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Component/DomCrawler/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2004-2018 Fabien Potencier
1+
Copyright (c) 2004-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎src/Symfony/Component/Dotenv/LICENSE

Copy file name to clipboardExpand all lines: src/Symfony/Component/Dotenv/LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016-2018 Fabien Potencier
1+
Copyright (c) 2016-2019 Fabien Potencier
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.