From 7a67e8c4441a1301d3a0ad8156f0b8f45675f1b6 Mon Sep 17 00:00:00 2001 From: Pascal Borreli Date: Sat, 29 Nov 2014 11:42:24 +0100 Subject: [PATCH] Fixed typos --- .../Component/ClassLoader/Tests/ClassCollectionLoaderTest.php | 2 +- .../ClassLoader/Tests/Fixtures/Namespaced/WithComments.php | 2 +- .../Config/Tests/Definition/Builder/ExprBuilderTest.php | 2 +- src/Symfony/Component/Console/Tests/ApplicationTest.php | 4 ++-- src/Symfony/Component/Console/Tests/Command/CommandTest.php | 4 ++-- src/Symfony/Component/Console/Tests/Helper/HelperSetTest.php | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php b/src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php index 587f36902f..696943ed93 100644 --- a/src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php +++ b/src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php @@ -227,7 +227,7 @@ class WithComments { public static \$loaded = true; } -\$string ='string shoult not be modified {\$string}'; +\$string ='string should not be modified {\$string}'; \$heredoc = (<<children() ->variableNode('key') ->validate() - ; + ; } /** diff --git a/src/Symfony/Component/Console/Tests/ApplicationTest.php b/src/Symfony/Component/Console/Tests/ApplicationTest.php index 07411444f4..179b5c9e4b 100644 --- a/src/Symfony/Component/Console/Tests/ApplicationTest.php +++ b/src/Symfony/Component/Console/Tests/ApplicationTest.php @@ -482,10 +482,10 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase $tester = new ApplicationTester($application); $tester->run(array('command' => 'foo'), array('decorated' => false)); - $this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception_doublewidth1.txt', $tester->getDisplay(true), '->renderException() renderes a pretty exceptions with previous exceptions'); + $this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception_doublewidth1.txt', $tester->getDisplay(true), '->renderException() renders a pretty exceptions with previous exceptions'); $tester->run(array('command' => 'foo'), array('decorated' => true)); - $this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception_doublewidth1decorated.txt', $tester->getDisplay(true), '->renderException() renderes a pretty exceptions with previous exceptions'); + $this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception_doublewidth1decorated.txt', $tester->getDisplay(true), '->renderException() renders a pretty exceptions with previous exceptions'); $application = $this->getMock('Symfony\Component\Console\Application', array('getTerminalWidth')); $application->setAutoExit(false); diff --git a/src/Symfony/Component/Console/Tests/Command/CommandTest.php b/src/Symfony/Component/Console/Tests/Command/CommandTest.php index 6505f0da80..e23070b3e9 100644 --- a/src/Symfony/Component/Console/Tests/Command/CommandTest.php +++ b/src/Symfony/Component/Console/Tests/Command/CommandTest.php @@ -211,7 +211,7 @@ class CommandTest extends \PHPUnit_Framework_TestCase $m = $r->getMethod('mergeApplicationDefinition'); $m->setAccessible(true); $m->invoke($command, false); - $this->assertTrue($command->getDefinition()->hasOption('bar'), '->mergeApplicationDefinition(false) merges the application and the commmand options'); + $this->assertTrue($command->getDefinition()->hasOption('bar'), '->mergeApplicationDefinition(false) merges the application and the command options'); $this->assertFalse($command->getDefinition()->hasArgument('foo'), '->mergeApplicationDefinition(false) does not merge the application arguments'); $m->invoke($command, true); @@ -243,7 +243,7 @@ class CommandTest extends \PHPUnit_Framework_TestCase * @expectedException \LogicException * @expectedExceptionMessage You must override the execute() method in the concrete command class. */ - public function testExecuteMethodNeedsToBeOverriden() + public function testExecuteMethodNeedsToBeOverridden() { $command = new Command('foo'); $command->run(new StringInput(''), new NullOutput()); diff --git a/src/Symfony/Component/Console/Tests/Helper/HelperSetTest.php b/src/Symfony/Component/Console/Tests/Helper/HelperSetTest.php index c9832736a2..4df4134889 100644 --- a/src/Symfony/Component/Console/Tests/Helper/HelperSetTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/HelperSetTest.php @@ -111,7 +111,7 @@ class HelperSetTest extends \PHPUnit_Framework_TestCase $this->assertEquals($cmd, $helperset->getCommand(), '->getCommand() retrieves stored command'); } - /** + /** * Create a generic mock for the helper interface. Optionally check for a call to setHelperSet with a specific * helperset instance. *