Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9a42c9

Browse files
committed
Fixed some more tests
1 parent d462aba commit d9a42c9

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

src/Symfony/Component/Console/Tests/Fixtures/application_asxml1.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<symfony>
33
<commands>
44
<command id="help" name="help">
5-
<usage>help [--xml] [--format FORMAT] [--raw] [--] [&lt;command_name&gt;]</usage>
5+
<usages>
6+
<usage>help [--xml] [--format FORMAT] [--raw] [--] [&lt;command_name&gt;]</usage>
7+
</usages>
68
<description>Displays help for a command</description>
79
<help>The &lt;info&gt;help&lt;/info&gt; command displays help for a given command:
810

@@ -13,7 +15,6 @@
1315
&lt;info&gt;php app/console help --format=xml list&lt;/info&gt;
1416

1517
To display the list of available commands, please use the &lt;info&gt;list&lt;/info&gt; command.</help>
16-
<aliases />
1718
<arguments>
1819
<argument name="command_name" is_required="0" is_array="0">
1920
<description>The command name</description>
@@ -59,7 +60,9 @@
5960
</options>
6061
</command>
6162
<command id="list" name="list">
62-
<usage>list [--xml] [--raw] [--format FORMAT] [--] [&lt;namespace&gt;]</usage>
63+
<usages>
64+
<usage>list [--xml] [--raw] [--format FORMAT] [--] [&lt;namespace&gt;]</usage>
65+
</usages>
6366
<description>Lists commands</description>
6467
<help>The &lt;info&gt;list&lt;/info&gt; command lists all commands:
6568

@@ -76,7 +79,6 @@
7679
It's also possible to get raw list of commands (useful for embedding command runner):
7780

7881
&lt;info&gt;php app/console list --raw&lt;/info&gt;</help>
79-
<aliases/>
8082
<arguments>
8183
<argument name="namespace" is_required="0" is_array="0">
8284
<description>The namespace name</description>
@@ -99,12 +101,12 @@
99101
</options>
100102
</command>
101103
<command id="foo:bar" name="foo:bar">
102-
<usage>foo:bar</usage>
104+
<usages>
105+
<usage>foo:bar</usage>
106+
<usage>afoobar</usage>
107+
</usages>
103108
<description>The foo:bar command</description>
104109
<help/>
105-
<aliases>
106-
<alias>afoobar</alias>
107-
</aliases>
108110
<arguments/>
109111
<options>
110112
<option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">

src/Symfony/Component/Console/Tests/Fixtures/application_asxml2.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<symfony>
33
<commands namespace="foo">
44
<command id="foo:bar" name="foo:bar">
5-
<usage>foo:bar</usage>
5+
<usages>
6+
<usage>foo:bar</usage>
7+
<usage>afoobar</usage>
8+
</usages>
69
<description>The foo:bar command</description>
710
<help/>
8-
<aliases>
9-
<alias>afoobar</alias>
10-
</aliases>
1111
<arguments/>
1212
<options>
1313
<option name="--help" shortcut="-h" accept_value="0" is_value_required="0" is_multiple="0">

src/Symfony/Component/Console/Tests/Fixtures/command_astext.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<comment>Usage:</comment>
22
namespace:name
3-
4-
<comment>Aliases:</comment> <info>name</info>
3+
name
54

65
<comment>Arguments:</comment>
76
<info>command</info> The command to execute

src/Symfony/Component/Console/Tests/Fixtures/command_asxml.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<command id="namespace:name" name="namespace:name">
3-
<usage>namespace:name</usage>
3+
<usages>
4+
<usage>namespace:name</usage>
5+
<usage>name</usage>
6+
</usages>
47
<description>description</description>
58
<help>help</help>
6-
<aliases>
7-
<alias>name</alias>
8-
</aliases>
99
<arguments>
1010
<argument name="command" is_required="1" is_array="0">
1111
<description>The command to execute</description>

0 commit comments

Comments
 (0)