8000 [Console] InputDefinition: corrected grammar mistakes and added a missing @throws declaration by nanocom · Pull Request #4609 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] InputDefinition: corrected grammar mistakes and added a missing @throws declaration #4609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 19, 2012
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
InputDefinition: Fixed unit tests
  • Loading branch information
nanocom committed Jun 18, 2012
commit 60d371bc357799e677a430dd23e31fd97472da7c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function testAddArgument()
$this->fail('->addArgument() throws a Exception if another argument is already registered with the same name');
} catch (\Exception $e) {
$this->assertInstanceOf('\Exception', $e, '->addArgument() throws a Exception if another argument is already registered with the same name');
$this->assertEquals('An argument with name "foo" already exist.', $e->getMessage());
$this->assertEquals('An argument with name "foo" already exists.', $e->getMessage());
}

// cannot add a parameter after an array parameter
Expand Down Expand Up @@ -215,14 +215,14 @@ public function testAddOption()
$this->fail('->addOption() throws a Exception if the another option is already registered with the same name');
} catch (\Exception $e) {
$this->assertInstanceOf('\Exception', $e, '->addOption() throws a Exception if the another option is already registered with the same name');
$this->assertEquals('An option named "foo" already exist.', $e->getMessage());
$this->assertEquals('An option named "foo" already exists.', $e->getMessage());
}
try {
$definition->addOption($this->foo1);
$this->fail('->addOption() throws a Exception if the another option is already registered with the same shortcut');
} catch (\Exception $e) {
$this->assertInstanceOf('\Exception', $e, '->addOption() throws a Exception if the another option is already registered with the same shortcut');
$this->assertEquals('An option with shortcut "f" already exist.', $e->getMessage());
$this->assertEquals('An option with shortcut "f" already exists.', $e->getMessage());
}
}

Expand Down
0