minor #36206 Fixed some typos (javiereguiluz)

This PR was merged into the 3.4 branch.

Discussion
----------

Fixed some typos

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Commits
-------

4befb23c76 Fixed some typos
This commit is contained in:
Fabien Potencier 2020-03-27 17:59:46 +01:00
commit c0c6c36534
7 changed files with 11 additions and 11 deletions

View File

@ -414,8 +414,8 @@ class XmlDescriptor extends Descriptor
} elseif (\is_array($argument)) { } elseif (\is_array($argument)) {
$argumentXML->setAttribute('type', 'collection'); $argumentXML->setAttribute('type', 'collection');
foreach ($this->getArgumentNodes($argument, $dom) as $childArgumenXML) { foreach ($this->getArgumentNodes($argument, $dom) as $childArgumentXML) {
$argumentXML->appendChild($childArgumenXML); $argumentXML->appendChild($childArgumentXML);
} }
} else { } else {
$argumentXML->appendChild(new \DOMText($argument)); $argumentXML->appendChild(new \DOMText($argument));

View File

@ -74,13 +74,13 @@ class SetAclCommandTest extends AbstractWebTestCase
try { try {
$acl->isGranted($permissionMap->getMasks('OWNER', null), [$securityIdentity1]); $acl->isGranted($permissionMap->getMasks('OWNER', null), [$securityIdentity1]);
$this->fail('NoAceFoundException not throwed'); $this->fail('NoAceFoundException not thrown');
} catch (NoAceFoundException $e) { } catch (NoAceFoundException $e) {
} }
try { try {
$acl->isGranted($permissionMap->getMasks('OPERATOR', null), [$securityIdentity2]); $acl->isGranted($permissionMap->getMasks('OPERATOR', null), [$securityIdentity2]);
$this->fail('NoAceFoundException not throwed'); $this->fail('NoAceFoundException not thrown');
} catch (NoAceFoundException $e) { } catch (NoAceFoundException $e) {
} }
} }
@ -117,13 +117,13 @@ class SetAclCommandTest extends AbstractWebTestCase
try { try {
$acl->isGranted($permissionMap->getMasks('VIEW', null), [$userSecurityIdentity]); $acl->isGranted($permissionMap->getMasks('VIEW', null), [$userSecurityIdentity]);
$this->fail('NoAceFoundException not throwed'); $this->fail('NoAceFoundException not thrown');
} catch (NoAceFoundException $e) { } catch (NoAceFoundException $e) {
} }
try { try {
$acl->isGranted($permissionMap->getMasks('OPERATOR', null), [$userSecurityIdentity]); $acl->isGranted($permissionMap->getMasks('OPERATOR', null), [$userSecurityIdentity]);
$this->fail('NoAceFoundException not throwed'); $this->fail('NoAceFoundException not thrown');
} catch (NoAceFoundException $e) { } catch (NoAceFoundException $e) {
} }
} }

View File

@ -229,7 +229,7 @@ class ContainerControllerResolverTest extends ControllerResolverTest
*/ */
public function testGetControllerOnNonUndefinedFunction($controller, $exceptionName = null, $exceptionMessage = null) public function testGetControllerOnNonUndefinedFunction($controller, $exceptionName = null, $exceptionMessage = null)
{ {
// All this logic needs to be duplicated, since calling parent::testGetControllerOnNonUndefinedFunction will override the expected excetion and not use the regex // All this logic needs to be duplicated, since calling parent::testGetControllerOnNonUndefinedFunction will override the expected exception and not use the regex
$resolver = $this->createControllerResolver(); $resolver = $this->createControllerResolver();
$this->expectException($exceptionName); $this->expectException($exceptionName);
$this->expectExceptionMessageRegExp($exceptionMessage); $this->expectExceptionMessageRegExp($exceptionMessage);

View File

@ -278,7 +278,7 @@ EOF;
$gotoname = 'not_'.preg_replace('/[^A-Za-z0-9_]/', '', $name); $gotoname = 'not_'.preg_replace('/[^A-Za-z0-9_]/', '', $name);
// the offset where the return value is appended below, with indendation // the offset where the return value is appended below, with indentation
$retOffset = 12 + \strlen($code); $retOffset = 12 + \strlen($code);
// optimize parameters array // optimize parameters array

View File

@ -256,7 +256,7 @@ class RouteCollectionBuilderTest extends TestCase
// shows that a prefix will always be given the starting slash // shows that a prefix will always be given the starting slash
$tests[] = ['0', '/foo', '/0/foo']; $tests[] = ['0', '/foo', '/0/foo'];
// spaces are ok, and double slahses at the end are cleaned // spaces are ok, and double slashes at the end are cleaned
$tests[] = ['/ /', '/foo', '/ /foo']; $tests[] = ['/ /', '/foo', '/ /foo'];
return $tests; return $tests;

View File

@ -315,7 +315,7 @@ class SwitchUserListenerTest extends TestCase
$this->assertSame($replacedToken, $this->tokenStorage->getToken()); $this->assertSame($replacedToken, $this->tokenStorage->getToken());
} }
public function testSwitchtUserThrowsAuthenticationExceptionIfNoCurrentToken() public function testSwitchUserThrowsAuthenticationExceptionIfNoCurrentToken()
{ {
$this->expectException('Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException'); $this->expectException('Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException');
$this->tokenStorage->setToken(null); $this->tokenStorage->setToken(null);

View File

@ -1794,7 +1794,7 @@ YAML
$this->assertEquals('!iterator foo', $this->parser->parse('!iterator foo')); $this->assertEquals('!iterator foo', $this->parser->parse('!iterator foo'));
} }
public function testExceptionWhenUsingUnsuportedBuiltInTags() public function testExceptionWhenUsingUnsupportedBuiltInTags()
{ {
$this->expectException('Symfony\Component\Yaml\Exception\ParseException'); $this->expectException('Symfony\Component\Yaml\Exception\ParseException');
$this->expectExceptionMessage('The built-in tag "!!foo" is not implemented at line 1 (near "!!foo").'); $this->expectExceptionMessage('The built-in tag "!!foo" is not implemented at line 1 (near "!!foo").');