Fixed some typos

This commit is contained in:
Javier Eguiluz 2020-03-25 13:02:26 +01:00
parent a29ee7c220
commit 4befb23c76
7 changed files with 11 additions and 11 deletions

View File

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

View File

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

View File

@ -229,7 +229,7 @@ class ContainerControllerResolverTest extends ControllerResolverTest
*/
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();
$this->expectException($exceptionName);
$this->expectExceptionMessageRegExp($exceptionMessage);

View File

@ -278,7 +278,7 @@ EOF;
$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);
// optimize parameters array

View File

@ -256,7 +256,7 @@ class RouteCollectionBuilderTest extends TestCase
// shows that a prefix will always be given the starting slash
$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'];
return $tests;

View File

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

View File

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