Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pborreli committed Jul 28, 2012
1 parent 1933eb6 commit 7c328a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Application.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ private function findAlternativeNamespace($name, $abbrevs)
* if nothing is found in $collection, try in $abbrevs * if nothing is found in $collection, try in $abbrevs
* *
* @param string $name The string * @param string $name The string
* @param array|Traversable $collection The collecion * @param array|Traversable $collection The collection
* @param array $abbrevs The abbreviations * @param array $abbrevs The abbreviations
* @param Closure|string|array $callback The callable to transform collection item before comparison * @param Closure|string|array $callback The callable to transform collection item before comparison
* *
Expand Down
2 changes: 1 addition & 1 deletion Formatter/OutputFormatterStyleInterface.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function setOption($option);
/** /**
* Unsets some specific style option. * Unsets some specific style option.
* *
* @param string $option Theoption name * @param string $option The option name
*/ */
public function unsetOption($option); public function unsetOption($option);


Expand Down
6 changes: 3 additions & 3 deletions Tests/ApplicationTest.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function testFindAlternativeCommands()
$application->add(new \Foo2Command()); $application->add(new \Foo2Command());


try { try {
$application->find($commandName = 'Unknow command'); $application->find($commandName = 'Unknown command');
$this->fail('->find() throws an \InvalidArgumentException if command does not exist'); $this->fail('->find() throws an \InvalidArgumentException if command does not exist');
} catch (\Exception $e) { } catch (\Exception $e) {
$this->assertInstanceOf('\InvalidArgumentException', $e, '->find() throws an \InvalidArgumentException if command does not exist'); $this->assertInstanceOf('\InvalidArgumentException', $e, '->find() throws an \InvalidArgumentException if command does not exist');
Expand Down Expand Up @@ -264,11 +264,11 @@ public function testFindAlternativeNamespace()
$application->add(new \foo3Command()); $application->add(new \foo3Command());


try { try {
$application->find('Unknow-namespace:Unknow-command'); $application->find('Unknown-namespace:Unknown-command');
$this->fail('->find() throws an \InvalidArgumentException if namespace does not exist'); $this->fail('->find() throws an \InvalidArgumentException if namespace does not exist');
} catch (\Exception $e) { } catch (\Exception $e) {
$this->assertInstanceOf('\InvalidArgumentException', $e, '->find() throws an \InvalidArgumentException if namespace does not exist'); $this->assertInstanceOf('\InvalidArgumentException', $e, '->find() throws an \InvalidArgumentException if namespace does not exist');
$this->assertEquals('There are no commands defined in the "Unknow-namespace" namespace.', $e->getMessage(), '->find() throws an \InvalidArgumentException if namespace does not exist, without alternatives'); $this->assertEquals('There are no commands defined in the "Unknown-namespace" namespace.', $e->getMessage(), '->find() throws an \InvalidArgumentException if namespace does not exist, without alternatives');
} }


try { try {
Expand Down

0 comments on commit 7c328a9

Please sign in to comment.