diff --git a/src/Symfony/Component/Translation/Tests/TranslatorTest.php b/src/Symfony/Component/Translation/Tests/TranslatorTest.php index 79b0685e91..7076f58213 100644 --- a/src/Symfony/Component/Translation/Tests/TranslatorTest.php +++ b/src/Symfony/Component/Translation/Tests/TranslatorTest.php @@ -193,16 +193,6 @@ class TranslatorTest extends TestCase $this->addToAssertionCount(1); } - /** - * @group legacy - * @expectedDeprecation Passing "null" to the third argument of the "Symfony\Component\Translation\Translator::addResource" method has been deprecated since Symfony 4.4 and will throw an error in 5.0. - */ - public function testAddResourceNull() - { - $translator = new Translator('fr'); - $translator->addResource('array', ['foo' => 'foofoo'], null); - } - public function testAddResourceAfterTrans() { $translator = new Translator('fr'); @@ -395,17 +385,6 @@ class TranslatorTest extends TestCase $this->assertEquals('OK', $translator->trans('test', [], null, $locale)); } - /** - * @group legacy - * @expectedDeprecation Passing "null" to the third argument of the "Symfony\Component\Translation\Translator::addResource" method has been deprecated since Symfony 4.4 and will throw an error in 5.0. - */ - public function testTransNullLocale() - { - $translator = new Translator(null); - $translator->addLoader('array', new ArrayLoader()); - $translator->addResource('array', ['test' => 'OK'], null); - } - /** * @dataProvider getFlattenedTransTests */