diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2014-09-22 13:59:59 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2014-09-22 13:59:59 +0200 |
commit | 729bef85463490cebd41160e3a111954f63a1638 (patch) | |
tree | 9d33fdc3a0c5f05f50399674c2adafee04045864 /Core/Tests/Encoder/EncoderFactoryTest.php | |
parent | de26fac7a2ca06f784ff0b19742878b2107b5643 (diff) | |
parent | 133d64ad84f9e37d681c70db8a05743fa2001e11 (diff) | |
download | symfony-security-729bef85463490cebd41160e3a111954f63a1638.zip symfony-security-729bef85463490cebd41160e3a111954f63a1638.tar.gz symfony-security-729bef85463490cebd41160e3a111954f63a1638.tar.bz2 |
Merge branch '2.5'
* 2.5:
added missing use statements
added missing use statement
added missing use statement
fixed CS
[Process] fixed some volatile tests
[HttpKernel] fixed a volatile test
[HttpFoundation] fixed some volatile tests
[Tests] PHPUnit Optimizations
Use getPathname() instead of string casting to get BinaryFileReponse file path
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php
src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/php/full.php
src/Symfony/Component/Debug/Tests/Exception/FlattenExceptionTest.php
src/Symfony/Component/HttpFoundation/Tests/BinaryFileResponseTest.php
src/Symfony/Component/Process/Process.php
src/Symfony/Component/Stopwatch/Stopwatch.php
src/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php
src/Symfony/Component/Validator/Tests/Constraints/GreaterThanOrEqualValidatorTest.php
src/Symfony/Component/Yaml/Parser.php
src/Symfony/Component/Yaml/Tests/InlineTest.php
Diffstat (limited to 'Core/Tests/Encoder/EncoderFactoryTest.php')
-rw-r--r-- | Core/Tests/Encoder/EncoderFactoryTest.php | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/Core/Tests/Encoder/EncoderFactoryTest.php b/Core/Tests/Encoder/EncoderFactoryTest.php index 3d34d04..a8ca2f0 100644 --- a/Core/Tests/Encoder/EncoderFactoryTest.php +++ b/Core/Tests/Encoder/EncoderFactoryTest.php @@ -84,7 +84,7 @@ class EncoderFactoryTest extends \PHPUnit_Framework_TestCase { $factory = new EncoderFactory(array( 'Symfony\Component\Security\Core\Tests\Encoder\EncAwareUser' => new MessageDigestPasswordEncoder('sha256'), - 'encoder_name' => new MessageDigestPasswordEncoder('sha1') + 'encoder_name' => new MessageDigestPasswordEncoder('sha1'), )); $encoder = $factory->getEncoder(new EncAwareUser('user', 'pass')); @@ -96,7 +96,7 @@ class EncoderFactoryTest extends \PHPUnit_Framework_TestCase { $factory = new EncoderFactory(array( 'Symfony\Component\Security\Core\Tests\Encoder\EncAwareUser' => new MessageDigestPasswordEncoder('sha1'), - 'encoder_name' => new MessageDigestPasswordEncoder('sha256') + 'encoder_name' => new MessageDigestPasswordEncoder('sha256'), )); $user = new EncAwareUser('user', 'pass'); @@ -113,7 +113,7 @@ class EncoderFactoryTest extends \PHPUnit_Framework_TestCase { $factory = new EncoderFactory(array( 'Symfony\Component\Security\Core\Tests\Encoder\EncAwareUser' => new MessageDigestPasswordEncoder('sha1'), - 'encoder_name' => new MessageDigestPasswordEncoder('sha256') + 'encoder_name' => new MessageDigestPasswordEncoder('sha256'), )); $user = new EncAwareUser('user', 'pass'); @@ -125,7 +125,7 @@ class EncoderFactoryTest extends \PHPUnit_Framework_TestCase { $factory = new EncoderFactory(array( 'Symfony\Component\Security\Core\Tests\Encoder\EncAwareUser' => new MessageDigestPasswordEncoder('sha1'), - 'encoder_name' => new MessageDigestPasswordEncoder('sha256') + 'encoder_name' => new MessageDigestPasswordEncoder('sha256'), )); $encoder = $factory->getEncoder('Symfony\Component\Security\Core\Tests\Encoder\EncAwareUser'); @@ -136,11 +136,21 @@ class EncoderFactoryTest extends \PHPUnit_Framework_TestCase class SomeUser implements UserInterface { - public function getRoles() {} - public function getPassword() {} - public function getSalt() {} - public function getUsername() {} - public function eraseCredentials() {} + public function getRoles() + { + } + public function getPassword() + { + } + public function getSalt() + { + } + public function getUsername() + { + } + public function eraseCredentials() + { + } } class SomeChildUser extends SomeUser |