Skip to content

Commit

Permalink
minor #36206 Fixed some typos (javiereguiluz)
Browse files Browse the repository at this point in the history
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
-------

4befb23 Fixed some typos
  • Loading branch information
fabpot committed Mar 27, 2020
2 parents 8abc8dd + 4befb23 commit c0c6c36
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Expand Up @@ -414,8 +414,8 @@ private function getArgumentNodes(array $arguments, \DOMDocument $dom)
} 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));
Expand Down
Expand Up @@ -74,13 +74,13 @@ public function testSetAclUser()

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) {
}
}
Expand Down Expand Up @@ -117,13 +117,13 @@ public function testSetAclRole()

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) {
}
}
Expand Down
Expand Up @@ -229,7 +229,7 @@ public function testExceptionWhenUsingControllerWithoutAnInvokeMethod()
*/
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);
Expand Down
Expand Up @@ -278,7 +278,7 @@ private function compileRoute(Route $route, $name, $supportsRedirections, $paren

$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
Expand Down
Expand Up @@ -256,7 +256,7 @@ public function providePrefixTests()
// 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;
Expand Down
Expand Up @@ -315,7 +315,7 @@ public function testSwitchUserWithReplacedToken()
$this->assertSame($replacedToken, $this->tokenStorage->getToken());
}

public function testSwitchtUserThrowsAuthenticationExceptionIfNoCurrentToken()
public function testSwitchUserThrowsAuthenticationExceptionIfNoCurrentToken()
{
$this->expectException('Symfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException');
$this->tokenStorage->setToken(null);
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Yaml/Tests/ParserTest.php
Expand Up @@ -1794,7 +1794,7 @@ public function testUnsupportedTagWithScalar()
$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").');
Expand Down

0 comments on commit c0c6c36

Please sign in to comment.