diff options
author | Pascal Borreli <pascal@borreli.com> | 2013-04-21 13:23:54 +0000 |
---|---|---|
committer | Pascal Borreli <pascal@borreli.com> | 2013-04-21 13:23:54 +0000 |
commit | 38e616ecd2dea264fa64730286f84f1a51b04614 (patch) | |
tree | b3575a7662b93d5a9190236a67e9a297a482a48f | |
parent | 56ddd41a7e9dce580ae6b6ef10350f9663b34d4b (diff) | |
download | symfony-security-38e616ecd2dea264fa64730286f84f1a51b04614.zip symfony-security-38e616ecd2dea264fa64730286f84f1a51b04614.tar.gz symfony-security-38e616ecd2dea264fa64730286f84f1a51b04614.tar.bz2 |
Fixed typos
-rw-r--r-- | Core/Authentication/Token/AbstractToken.php | 4 | ||||
-rw-r--r-- | Tests/Core/Authentication/Token/AbstractTokenTest.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Core/Authentication/Token/AbstractToken.php b/Core/Authentication/Token/AbstractToken.php index f21aa76..1d65819 100644 --- a/Core/Authentication/Token/AbstractToken.php +++ b/Core/Authentication/Token/AbstractToken.php @@ -91,7 +91,7 @@ abstract class AbstractToken implements TokenInterface public function setUser($user) { if (!($user instanceof UserInterface || (is_object($user) && method_exists($user, '__toString')) || is_string($user))) { - throw new \InvalidArgumentException('$user must be an instanceof of UserInterface, an object implementing a __toString method, or a primitive string.'); + throw new \InvalidArgumentException('$user must be an instanceof UserInterface, an object implementing a __toString method, or a primitive string.'); } if (null === $this->user) { @@ -190,7 +190,7 @@ abstract class AbstractToken implements TokenInterface } /** - * Returns a attribute value. + * Returns an attribute value. * * @param string $name The attribute name * diff --git a/Tests/Core/Authentication/Token/AbstractTokenTest.php b/Tests/Core/Authentication/Token/AbstractTokenTest.php index 4df6068..783c27e 100644 --- a/Tests/Core/Authentication/Token/AbstractTokenTest.php +++ b/Tests/Core/Authentication/Token/AbstractTokenTest.php @@ -116,9 +116,9 @@ class AbstractTokenTest extends \PHPUnit_Framework_TestCase $token->setAttributes($attributes); $this->assertEquals($attributes, $token->getAttributes(), '->getAttributes() returns the token attributes'); - $this->assertEquals('bar', $token->getAttribute('foo'), '->getAttribute() returns the value of a attribute'); + $this->assertEquals('bar', $token->getAttribute('foo'), '->getAttribute() returns the value of an attribute'); $token->setAttribute('foo', 'foo'); - $this->assertEquals('foo', $token->getAttribute('foo'), '->setAttribute() changes the value of a attribute'); + $this->assertEquals('foo', $token->getAttribute('foo'), '->setAttribute() changes the value of an attribute'); $this->assertTrue($token->hasAttribute('foo'), '->hasAttribute() returns true if the attribute is defined'); $this->assertFalse($token->hasAttribute('oof'), '->hasAttribute() returns false if the attribute is not defined'); |