Removed deprecation notices from test files.
This commit is contained in:
parent
2a9749d0f4
commit
39cfd4744e
@ -33,7 +33,7 @@ class LegacyOptionsTest extends \PHPUnit_Framework_TestCase
|
|||||||
$test = $this;
|
$test = $this;
|
||||||
|
|
||||||
$this->options->set('foo', function (Options $options) use ($test) {
|
$this->options->set('foo', function (Options $options) use ($test) {
|
||||||
return 'dynamic';
|
return 'dynamic';
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->assertEquals(array('foo' => 'dynamic'), $this->options->resolve());
|
$this->assertEquals(array('foo' => 'dynamic'), $this->options->resolve());
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ use Symfony\Component\Validator\Tests\Fixtures\StubGlobalExecutionContext;
|
|||||||
use Symfony\Component\Validator\Validation;
|
use Symfony\Component\Validator\Validation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.5.3
|
* @since 2.5.3
|
||||||
*
|
*
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
*/
|
*/
|
||||||
@ -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