diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2015-01-05 15:34:32 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-01-05 15:34:32 +0100 |
commit | 4c366b503b2ddfa05b41ba4d5ce187e5caf136e3 (patch) | |
tree | a28e668330991506e61ab922db6294d9a690ed3a | |
parent | 5b7d3e0d71025c7b6194d0d39f9f0a234f27aa2f (diff) | |
parent | 79471f92de28ed0acf9cce11051ebc47964acfbb (diff) | |
download | symfony-security-4c366b503b2ddfa05b41ba4d5ce187e5caf136e3.zip symfony-security-4c366b503b2ddfa05b41ba4d5ce187e5caf136e3.tar.gz symfony-security-4c366b503b2ddfa05b41ba4d5ce187e5caf136e3.tar.bz2 |
Merge branch '2.7'
* 2.7:
[2.6] cleanup deprecated uses
[2.5] cleanup deprecated uses
[Debug] fix test
[Debug] split tests for deprecated interfaces
[Validator] Added a check DNS option on URL validator
Conflicts:
src/Symfony/Component/Console/Tests/Helper/LegacyDialogHelperTest.php
src/Symfony/Component/Console/Tests/Helper/LegacyProgressHelperTest.php
src/Symfony/Component/Console/Tests/Helper/LegacyTableHelperTest.php
src/Symfony/Component/Form/composer.json
src/Symfony/Component/HttpKernel/Tests/KernelTest.php
src/Symfony/Component/Routing/Tests/Matcher/Dumper/LegacyApacheMatcherDumperTest.php
src/Symfony/Component/Routing/Tests/Matcher/LegacyApacheUrlMatcherTest.php
src/Symfony/Component/Validator/Tests/ValidatorBuilderTest.php
src/Symfony/Component/Validator/ValidatorBuilder.php
-rw-r--r-- | Core/SecurityContext.php | 6 | ||||
-rw-r--r-- | Core/Tests/Validator/Constraints/UserPasswordValidatorTest.php | 3 | ||||
-rw-r--r-- | Tests/Core/LegacySecurityContextInterfaceTest.php (renamed from Tests/Core/SecurityContextInterfaceTest.php) | 6 |
3 files changed, 5 insertions, 10 deletions
diff --git a/Core/SecurityContext.php b/Core/SecurityContext.php index 545d4cb..165c22a 100644 --- a/Core/SecurityContext.php +++ b/Core/SecurityContext.php @@ -70,8 +70,6 @@ class SecurityContext implements SecurityContextInterface } /** - * @deprecated Deprecated since version 2.6, to be removed in 3.0. Use TokenStorageInterface::getToken() instead. - * * {@inheritdoc} */ public function getToken() @@ -80,8 +78,6 @@ class SecurityContext implements SecurityContextInterface } /** - * @deprecated Deprecated since version 2.6, to be removed in 3.0. Use TokenStorageInterface::setToken() instead. - * * {@inheritdoc} */ public function setToken(TokenInterface $token = null) @@ -90,8 +86,6 @@ class SecurityContext implements SecurityContextInterface } /** - * @deprecated Deprecated since version 2.6, to be removed in 3.0. Use AuthorizationCheckerInterface::isGranted() instead. - * * {@inheritdoc} */ public function isGranted($attributes, $object = null) diff --git a/Core/Tests/Validator/Constraints/UserPasswordValidatorTest.php b/Core/Tests/Validator/Constraints/UserPasswordValidatorTest.php index b47a45b..7792913 100644 --- a/Core/Tests/Validator/Constraints/UserPasswordValidatorTest.php +++ b/Core/Tests/Validator/Constraints/UserPasswordValidatorTest.php @@ -86,7 +86,8 @@ abstract class UserPasswordValidatorTest extends AbstractConstraintValidatorTest $this->validator->validate('secret', $constraint); - $this->assertViolation('myMessage'); + $this->buildViolation('myMessage') + ->assertRaised(); } /** diff --git a/Tests/Core/SecurityContextInterfaceTest.php b/Tests/Core/LegacySecurityContextInterfaceTest.php index 09a4590..764a43d 100644 --- a/Tests/Core/SecurityContextInterfaceTest.php +++ b/Tests/Core/LegacySecurityContextInterfaceTest.php @@ -14,15 +14,15 @@ namespace Symfony\Component\Security\Tests\Core; use Symfony\Component\Security\Core\SecurityContextInterface; use Symfony\Component\Security\Core\Security; -class SecurityContextInterfaceTest extends \PHPUnit_Framework_TestCase +class LegacySecurityContextInterfaceTest extends \PHPUnit_Framework_TestCase { /** * Test if the BC Layer is working as intended - * - * @deprecated since version 2.6, to be removed in 3.0. */ public function testConstantSync() { + $this->iniSet('error_reporting', -1 & E_USER_DEPRECATED); + $this->assertSame(Security::ACCESS_DENIED_ERROR, SecurityContextInterface::ACCESS_DENIED_ERROR); $this->assertSame(Security::AUTHENTICATION_ERROR, SecurityContextInterface::AUTHENTICATION_ERROR); $this->assertSame(Security::LAST_USERNAME, SecurityContextInterface::LAST_USERNAME); |