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;
|
||||
|
||||
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\Security;
|
||||
|
||||
|
@ -167,13 +167,10 @@ abstract class AbstractConstraintValidatorTest extends \PHPUnit_Framework_TestCa
|
||||
*
|
||||
* @return ConstraintViolation
|
||||
*
|
||||
* @deprecated To be removed in Symfony 3.0. Use
|
||||
* {@link buildViolation()} instead.
|
||||
* @deprecated to be removed in Symfony 3.0. Use {@link buildViolation()} instead.
|
||||
*/
|
||||
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(
|
||||
null,
|
||||
$message,
|
||||
|
@ -11,8 +11,6 @@
|
||||
|
||||
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\GlobalExecutionContextInterface;
|
||||
use Symfony\Component\Validator\ValidationVisitorInterface;
|
||||
|
Reference in New Issue
Block a user