Removed deprecation notices from test files.
This commit is contained in:
parent
2a9749d0f4
commit
39cfd4744e
@ -11,8 +11,6 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Security\Tests\Core;
|
namespace Symfony\Component\Security\Tests\Core;
|
||||||
|
|
||||||
trigger_error('The '.__NAMESPACE__.'\SecurityContextInterfaceTest class is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
|
|
||||||
|
|
||||||
use Symfony\Component\Security\Core\SecurityContextInterface;
|
use Symfony\Component\Security\Core\SecurityContextInterface;
|
||||||
use Symfony\Component\Security\Core\Security;
|
use Symfony\Component\Security\Core\Security;
|
||||||
|
|
||||||
|
@ -167,13 +167,10 @@ abstract class AbstractConstraintValidatorTest extends \PHPUnit_Framework_TestCa
|
|||||||
*
|
*
|
||||||
* @return ConstraintViolation
|
* @return ConstraintViolation
|
||||||
*
|
*
|
||||||
* @deprecated To be removed in Symfony 3.0. Use
|
* @deprecated to be removed in Symfony 3.0. Use {@link buildViolation()} instead.
|
||||||
* {@link buildViolation()} instead.
|
|
||||||
*/
|
*/
|
||||||
protected function createViolation($message, array $parameters = array(), $propertyPath = 'property.path', $invalidValue = 'InvalidValue', $plural = null, $code = null)
|
protected function createViolation($message, array $parameters = array(), $propertyPath = 'property.path', $invalidValue = 'InvalidValue', $plural = null, $code = null)
|
||||||
{
|
{
|
||||||
trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the buildViolation() method instead.', E_USER_DEPRECATED);
|
|
||||||
|
|
||||||
return new ConstraintViolation(
|
return new ConstraintViolation(
|
||||||
null,
|
null,
|
||||||
$message,
|
$message,
|
||||||
|
@ -11,8 +11,6 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests\Fixtures;
|
namespace Symfony\Component\Validator\Tests\Fixtures;
|
||||||
|
|
||||||
trigger_error('The '.__NAMESPACE__.'\StubGlobalExecutionContext class is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
|
||||||
|
|
||||||
use Symfony\Component\Validator\ConstraintViolationList;
|
use Symfony\Component\Validator\ConstraintViolationList;
|
||||||
use Symfony\Component\Validator\GlobalExecutionContextInterface;
|
use Symfony\Component\Validator\GlobalExecutionContextInterface;
|
||||||
use Symfony\Component\Validator\ValidationVisitorInterface;
|
use Symfony\Component\Validator\ValidationVisitorInterface;
|
||||||
|
Reference in New Issue
Block a user