Ver Fonte

[Tests] Fixed typos

Pascal Borreli há 14 anos atrás
pai
commit
f5eaa404c7

+ 1 - 1
tests/Symfony/Tests/Bridge/Doctrine/Form/ChoiceList/EntityChoiceListTest.php

@@ -86,7 +86,7 @@ class EntityChoiceListTest extends DoctrineOrmTestCase
         $entity1 = new SingleIdentEntity(1, 'Foo');
         $entity2 = new SingleIdentEntity(2, 'Bar');
 
-        // Oh yea, we're persistin' with fire now!
+        // Oh yeah, we're persisting with fire now!
         $this->em->persist($entity1);
         $this->em->persist($entity2);
 

+ 1 - 1
tests/Symfony/Tests/Bridge/Doctrine/Validator/Constraints/UniqueValidatorTest.php

@@ -59,7 +59,7 @@ class UniqueValidatorTest extends DoctrineOrmTestCase
     }
 
     /**
-     * This is a functinoal test as there is a large integration necessary to get the validator working.
+     * This is a functional test as there is a large integration necessary to get the validator working.
      */
     public function testValidateUniqueness()
     {

+ 1 - 1
tests/Symfony/Tests/Component/DependencyInjection/Dumper/PhpDumperTest.php

@@ -64,7 +64,7 @@ class PhpDumperTest extends \PHPUnit_Framework_TestCase
             $dumper->dump();
             $this->fail('->dump() throws a RuntimeException if the container to be dumped has reference to objects or resources');
         } catch (\Exception $e) {
-            $this->assertInstanceOf('\RuntimeException', $e, '->dump() returns a LogicException if the dump() method has not been overriden by a children class');
+            $this->assertInstanceOf('\RuntimeException', $e, '->dump() returns a LogicException if the dump() method has not been overridden by a children class');
             $this->assertEquals('Unable to dump a service container if a parameter is an object or a resource.', $e->getMessage(), '->dump() returns a LogicException if the dump() method has not been overridden by a children class');
         }
     }

+ 2 - 2
tests/Symfony/Tests/Component/DependencyInjection/Fixtures/xml/services2.xml

@@ -24,8 +24,8 @@
       </parameter>
     </parameter>
     <parameter key="foo_bar" type="service" id="foo_bar" />
-    <parameter key="MixedCase" type="collection"> <!-- Shoud be lower cased -->
-      <parameter key="MixedCaseKey">value</parameter> <!-- Shoud stay mixed case -->
+    <parameter key="MixedCase" type="collection"> <!-- Should be lower cased -->
+      <parameter key="MixedCaseKey">value</parameter> <!-- Should stay mixed case -->
     </parameter>
   </parameters>
 </container>

+ 1 - 1
tests/Symfony/Tests/Component/Form/AbstractDivLayoutTest.php

@@ -85,7 +85,7 @@ abstract class AbstractDivLayoutTest extends AbstractLayoutTest
             ->getForm()
             ->createView();
 
-        // Render field2 row -> does not implicitely call renderWidget because
+        // Render field2 row -> does not implicitly call renderWidget because
         // it is a repeated field!
         $this->renderRow($view['field2']);
 

+ 1 - 1
tests/Symfony/Tests/Component/HttpFoundation/RequestTest.php

@@ -43,7 +43,7 @@ class RequestTest extends \PHPUnit_Framework_TestCase
         $this->assertEquals('bar', $request->request->get('foo'), '->initialize() takes an array of request parameters as its second argument');
 
         $request->initialize(array(), array(), array('foo' => 'bar'));
-        $this->assertEquals('bar', $request->attributes->get('foo'), '->initialize() takes an array of attributes as its thrid argument');
+        $this->assertEquals('bar', $request->attributes->get('foo'), '->initialize() takes an array of attributes as its third argument');
 
         $request->initialize(array(), array(), array(), array(), array(), array('HTTP_FOO' => 'bar'));
         $this->assertEquals('bar', $request->headers->get('FOO'), '->initialize() takes an array of HTTP headers as its fourth argument');

+ 2 - 2
tests/Symfony/Tests/Component/HttpKernel/DataCollector/ConfigDataCollectorTest.php

@@ -33,14 +33,14 @@ class ConfigDataCollectorTest extends \PHPUnit_Framework_TestCase
         $this->assertSame(Kernel::VERSION,$c->getSymfonyVersion());
         $this->assertNull($c->getToken());
 
-        // if else clause because we dont know it
+        // if else clause because we don't know it
         if (extension_loaded('xdebug')) {
             $this->assertTrue($c->hasXdebug());
         } else {
             $this->assertFalse($c->hasXdebug());
         }
 
-        // if else clause because we dont know it
+        // if else clause because we don't know it
         if (((extension_loaded('eaccelerator') && ini_get('eaccelerator.enable'))
                 ||
                 (extension_loaded('apc') && ini_get('apc.enabled'))

+ 1 - 1
tests/Symfony/Tests/Component/HttpKernel/HttpCache/HttpCacheTest.php

@@ -382,7 +382,7 @@ class HttpCacheTest extends HttpCacheTestCase
         $this->assertTraceNotContains('store');
     }
 
-    public function testCachesResponesWithExplicitNoCacheDirective()
+    public function testCachesResponsesWithExplicitNoCacheDirective()
     {
         $time = \DateTime::createFromFormat('U', time() + 5);
         $this->setNextResponse(200, array('Expires' => $time->format(DATE_RFC2822), 'Cache-Control' => 'public, no-cache'));

+ 1 - 1
tests/Symfony/Tests/Component/HttpKernel/Profiler/SqliteProfilerStorageTest.php

@@ -120,6 +120,6 @@ class SqliteProfilerStorageTest extends \PHPUnit_Framework_TestCase
         $this->assertEquals(count(self::$storage->find('127.0.0.1', 'http://foo.bar/"', 10)), 1, '->find() accepts double quotes in URLs');
         $this->assertEquals(count(self::$storage->find('127.0.0.1', 'http://foo\\bar/', 10)), 1, '->find() accepts backslash in URLs');
         $this->assertEquals(count(self::$storage->find('127.0.0.1', 'http://foo.bar/%', 10)), 1, '->find() does not interpret a "%" as a wildcard in the URL');
-        $this->assertEquals(count(self::$storage->find('127.0.0.1', 'http://foo.bar/_', 10)), 1, '->find() does not interpret a "_" as a wlidcard in the URL');
+        $this->assertEquals(count(self::$storage->find('127.0.0.1', 'http://foo.bar/_', 10)), 1, '->find() does not interpret a "_" as a wildcard in the URL');
     }
 }

+ 1 - 1
tests/Symfony/Tests/Component/Routing/Generator/UrlGeneratorTest.php

@@ -142,7 +142,7 @@ class UrlGeneratorTest extends \PHPUnit_Framework_TestCase
     /**
      * @expectedException Symfony\Component\Routing\Exception\MissingMandatoryParametersException
      */
-    public function testGenerateForRouteWithoutManditoryParameter()
+    public function testGenerateForRouteWithoutMandatoryParameter()
     {
         $routes = $this->getRoutes('test', new Route('/testing/{foo}'));
         $this->getGenerator($routes)->generate('test', array(), true);

+ 1 - 1
tests/Symfony/Tests/Component/Security/Acl/Permission/BasicPermissionMapTest.php

@@ -18,6 +18,6 @@ class BasicPermissionMapTest extends \PHPUnit_Framework_TestCase
     public function testGetMasksReturnsNullWhenNotSupportedMask()
     {
         $map = new BasicPermissionMap();
-        $this->assertNull($map->getMasks('IS_AUTHENTICATED_REMEBERED', null));
+        $this->assertNull($map->getMasks('IS_AUTHENTICATED_REMEMBERED', null));
     }
 }