8000 Removed deprecation notices from test files. · symfony/symfony@39cfd47 · GitHub
[go: up one dir, main page]

Skip to content

Commit 39cfd47

Browse files
author
Hugo Hamon
committed
Removed deprecation notices from test files.
1 parent 2a9749d commit 39cfd47

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsTest.php

Lines changed: 1 addition & 1 deletion
Original fi 8000 le line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testSetLazyOption()
3333
$test = $this;
3434

3535
$this->options->set('foo', function (Options $options) use ($test) {
36-
return 'dynamic';
36+
return 'dynamic';
3737
});
3838

3939
$this->assertEquals(array('foo' => 'dynamic'), $this->options->resolve());

src/Symfony/Component/Security/Tests/Core/LegacySecurityContextInterfaceTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Security\Tests\Core;
1313

14-
trigger_error('The '.__NAMESPACE__.'\SecurityContextInterfaceTest class is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
15-
1614
use Symfony\Component\Security\Core\SecurityContextInterface;
1715
use Symfony\Component\Security\Core\Security;
1816

src/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
use Symfony\Component\Validator\Validation;
2626

2727
/**
28-
* @since 2.5.3
28+
* @since 2.5.3
2929
*
3030
* @author Bernhard Schussek <bschussek@gmail.com>
3131
*/
@@ -167,13 +167,10 @@ protected function createContext()
167167
*
168168
* @return ConstraintViolation
169169
*
170-
* @deprecated To be removed in Symfony 3.0. Use
171-
* {@link buildViolation()} instead.
170+
* @deprecated to be removed in Symfony 3.0. Use {@link buildViolation()} instead.
172171
*/
173172
protected function createViolation($message, array $parameters = array(), $propertyPath = 'property.path', $invalidValue = 'InvalidValue', $plural = null, $code = null)
174173
{
175-
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);
176-
177174
return new ConstraintViolation(
178175
null,
179176
$message,

src/Symfony/Component/Validator/Tests/Fixtures/StubGlobalExecutionContext.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Validator\Tests\Fixtures;
1313

14-
trigger_error('The '.__NAMESPACE__.'\StubGlobalExecutionContext class is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
15-
1614
use Symfony\Component\Validator\ConstraintViolationList;
1715
use Symfony\Component\Validator\GlobalExecutionContextInterface;
1816
use Symfony\Component\Validator\ValidationVisitorInterface;

0 commit comments

Comments
 (0)
0