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:
commit
c0c6c36534
@ -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));
|
||||
|
@ -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) {
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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").');
|
||||
|
Reference in New Issue
Block a user