Permalink
Browse files

Fixed typos

  • Loading branch information...
1 parent 1933eb6 commit 7c328a9752ac035fe38dfae5425cf66b905c5394 @pborreli pborreli committed Jul 28, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 Application.php
  2. +1 −1 Formatter/OutputFormatterStyleInterface.php
  3. +3 −3 Tests/ApplicationTest.php
View
@@ -1041,7 +1041,7 @@ private function findAlternativeNamespace($name, $abbrevs)
* if nothing is found in $collection, try in $abbrevs
*
* @param string $name The string
- * @param array|Traversable $collection The collecion
+ * @param array|Traversable $collection The collection
* @param array $abbrevs The abbreviations
* @param Closure|string|array $callback The callable to transform collection item before comparison
*
@@ -50,7 +50,7 @@ public function setOption($option);
/**
* Unsets some specific style option.
*
- * @param string $option Theoption name
+ * @param string $option The option name
*/
public function unsetOption($option);
@@ -224,7 +224,7 @@ public function testFindAlternativeCommands()
$application->add(new \Foo2Command());
try {
- $application->find($commandName = 'Unknow command');
+ $application->find($commandName = 'Unknown command');
$this->fail('->find() throws an \InvalidArgumentException if command does not exist');
} catch (\Exception $e) {
$this->assertInstanceOf('\InvalidArgumentException', $e, '->find() throws an \InvalidArgumentException if command does not exist');
@@ -264,11 +264,11 @@ public function testFindAlternativeNamespace()
$application->add(new \foo3Command());
try {
- $application->find('Unknow-namespace:Unknow-command');
+ $application->find('Unknown-namespace:Unknown-command');
$this->fail('->find() throws an \InvalidArgumentException if namespace does not exist');
} catch (\Exception $e) {
$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 {

0 comments on commit 7c328a9

Please sign in to comment.