Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7495ec

Browse files
committed
Resolving tests deprecations
1 parent 263f0c3 commit f7495ec

22 files changed

+8
-26
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/BundlePaths/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ framework:
88

99
twig:
1010
strict_variables: '%kernel.debug%'
11-
exception_controller: ~

src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/Fragment/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ framework:
77

88
twig:
99
strict_variables: '%kernel.debug%'
10-
exception_controller: ~

src/Symfony/Bundle/TwigBundle/Tests/Controller/PreviewErrorControllerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
use Symfony\Component\HttpFoundation\Response;
1919
use Symfony\Component\HttpKernel\HttpKernelInterface;
2020

21+
/**
22+
* @group legacy
23+
*/
2124
class PreviewErrorControllerTest extends TestCase
2225
{
2326
public function testForwardRequestToConfiguredController()

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public function testDoNoDuplicateDefaultFormResources()
2121
{
2222
$input = [
2323
'strict_variables' => false, // to be removed in 5.0 relying on default
24-
'exception_controller' => null, // to be removed in 5.0 relying on default
2524
'form_themes' => ['form_div_layout.html.twig'],
2625
];
2726

@@ -59,7 +58,6 @@ public function testGlobalsAreNotNormalized()
5958
{
6059
$input = [
6160
'strict_variables' => false, // to be removed in 5.0 relying on default
62-
'exception_controller' => null, // to be removed in 5.0 relying on default
6361
'globals' => ['some-global' => true],
6462
];
6563

@@ -73,7 +71,6 @@ public function testArrayKeysInGlobalsAreNotNormalized()
7371
{
7472
$input = [
7573
'strict_variables' => false, // to be removed in 5.0 relying on default
76-
'exception_controller' => null, // to be removed in 5.0 relying on default
7774
'globals' => ['global' => ['some-key' => 'some-value']],
7875
];
7976

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/php/customTemplateEscapingGuesser.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
'autoescape_service' => 'my_project.some_bundle.template_escaping_guesser',
55
'autoescape_service_method' => 'guess',
66
'strict_variables' => false, // to be removed in 5.0 relying on default
7-
'exception_controller' => null, // to be removed in 5.0 relying on default
87
]);

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/php/empty.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33
$container->loadFromExtension('twig', [
44
'strict_variables' => false, // to be removed in 5.0 relying on default
5-
'exception_controller' => null, // to be removed in 5.0 relying on default
65
]);

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/php/formats.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@
1212
'thousands_separator' => '.',
1313
],
1414
'strict_variables' => false, // to be removed in 5.0 relying on default
15-
'exception_controller' => null, // to be removed in 5.0 relying on default
1615
]);

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/php/full.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
'charset' => 'ISO-8859-1',
1818
'debug' => true,
1919
'strict_variables' => true,
20-
'exception_controller' => null,
2120
'default_path' => '%kernel.project_dir%/Fixtures/templates',
2221
'paths' => [
2322
'path1',

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/xml/customTemplateEscapingGuesser.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd
77
http://symfony.com/schema/dic/twig https://symfony.com/schema/dic/twig/twig-1.0.xsd">
88

9-
<twig:config autoescape-service="my_project.some_bundle.template_escaping_guesser" autoescape-service-method="guess" strict-variables="false" exception-controller="null" />
9+
<twig:config autoescape-service="my_project.some_bundle.template_escaping_guesser" autoescape-service-method="guess" strict-variables="false" />
1010
</container>

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/xml/empty.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd
77
http://symfony.com/schema/dic/twig https://symfony.com/schema/dic/twig/twig-1.0.xsd">
88

9-
<twig:config strict-variables="false" exception-controller="null" />
9+
<twig:config strict-variables="false" />
1010
</container>

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/xml/extra.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd
77
http://symfony.com/schema/dic/twig https://symfony.com/schema/dic/twig/twig-1.0.xsd">
88

9-
<twig:config auto-reload="true" autoescape="true" base-template-class="stdClass" cache="/tmp" charset="ISO-8859-1" debug="true" strict-variables="true" exception-controller="null">
9+
<twig:config auto-reload="true" autoescape="true" base-template-class="stdClass" cache="/tmp" charset="ISO-8859-1" debug="true" strict-variables="true">
1010
<twig:path namespace="namespace3">namespaced_path3</twig:path>
1111
</twig:config>
1212
</container>

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/xml/formats.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd
66
http://symfony.com/schema/dic/twig https://symfony.com/schema/dic/twig/twig-1.0.xsd">
77

8-
<twig:config strict-variables="false" exception-controller="null">
8+
<twig:config strict-variables="false">
99
<twig:date format="Y-m-d" interval-format="%d" timezone="Europe/Berlin" />
1010
<twig:number-format decimals="2" decimal-point="," thousands-separator="." />
1111
</twig:config>

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/xml/full.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd
77
http://symfony.com/schema/dic/twig https://symfony.com/schema/dic/twig/twig-1.0.xsd">
88

9-
<twig:config auto-reload="true" autoescape="true" base-template-class="stdClass" cache="/tmp" charset="ISO-8859-1" debug="true" strict-variables="true" default-path="%kernel.project_dir%/Fixtures/templates" exception-controller="null">
9+
<twig:config auto-reload="true" autoescape="true" base-template-class="stdClass" cache="/tmp" charset="ISO-8859-1" debug="true" strict-variables="true" default-path="%kernel.project_dir%/Fixtures/templates">
1010
<twig:form-theme>MyBundle::form.html.twig</twig:form-theme>
1111
<twig:global key="foo" id="bar" type="service" />
1212
<twig:global key="baz">@@qux</twig:global>

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/yml/customTemplateEscapingGuesser.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ twig:
22
autoescape_service: my_project.some_bundle.template_escaping_guesser
33
autoescape_service_method: guess
44
strict_variables: false # to be removed in 5.0 relying on default
5-
exception_controller: ~ # to be removed in 5.0 relying on default
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
twig:
22
strict_variables: false # to be removed in 5.0 relying on default
3-
exception_controller: ~ # to be removed in 5.0 relying on default
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
twig:
22
strict_variables: false # to be removed in 5.0 relying on default
3-
exception_controller: ~ # to be removed in 5.0 relying on default
43
paths:
54
namespaced_path3: namespace3

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/yml/formats.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
twig:
22
strict_variables: false # to be removed in 5.0 relying on default
3-
exception_controller: ~ # to be removed in 5.0 relying on default
43
date:
54
format: Y-m-d
65
interval_format: '%d'

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/Fixtures/yml/full.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ twig:
1414
debug: true
1515
strict_variables: true
1616
default_path: '%kernel.project_dir%/Fixtures/templates'
17-
exception_controller: ~ # to be removed in 5.0 relying on default
1817
paths:
1918
path1: ''
2019
path2: ''

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/TwigExtensionTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public function testLoadEmptyConfiguration()
3232
$container->registerExtension(new TwigExtension());
3333
$container->loadFromExtension('twig', [
3434
'strict_variables' => false, // to be removed in 5.0 relying on default
35-
'exception_controller' => null, // to be removed in 5.0 relying on default
3635
]);
3736
$this->compileContainer($container);
3837

@@ -158,7 +157,6 @@ public function testGlobalsWithDifferentTypesAndValues()
158157
$container->loadFromExtension('twig', [
159158
'globals' => $globals,
160159
'strict_variables' => false, // // to be removed in 5.0 relying on default
161-
'exception_controller' => null, // to be removed in 5.0 relying on default
162160
]);
163161
$this->compileContainer($container);
164162

@@ -262,7 +260,6 @@ public function testStopwatchExtensionAvailability($debug, $stopwatchEnabled, $e
262260
$container->registerExtension(new TwigExtension());
263261
$container->loadFromExtension('twig', [
264262
'strict_variables' => false, // to be removed in 5.0 relying on default
265-
'exception_controller' => null, // to be removed in 5.0 relying on default
266263
]);
267264
$container->setAlias('test.twig.extension.debug.stopwatch', 'twig.extension.debug.stopwatch')->setPublic(true);
268265
$this->compileContainer($container);
@@ -293,7 +290,6 @@ public function testRuntimeLoader()
293290
$container->registerExtension(new TwigExtension());
294291
$container->loadFromExtension('twig', [
295292
'strict_variables' => false, // to be removed in 5.0 relying on default
296-
'exception_controller' => null, // to be removed in 5.0 relying on default
297293
]);
298294
$container->setParameter('kernel.environment', 'test');
299295
$container->setParameter('debug.file_link_format', 'test');

src/Symfony/Bundle/TwigBundle/Tests/Functional/CacheWarmingTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public function registerContainerConfiguration(LoaderInterface $loader)
9999
])
100100
->loadFromExtension('twig', [ // to be removed in 5.0 relying on default
101101
'strict_variables' => false,
102-
'exception_controller' => null,
103102
])
104103
;
105104
});

src/Symfony/Bundle/TwigBundle/Tests/Functional/EmptyAppTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public function registerContainerConfiguration(LoaderInterface $loader)
4242
$loader->load(static function (ContainerBuilder $container) {
4343
$container->loadFromExtension('twig', [ // to be removed in 5.0 relying on default
4444
'strict_variables' => false,
45-
'exception_controller' => null,
4645
]);
4746
$container->register('error_renderer', ErrorRenderer::class);
4847
$container->setParameter('debug.file_link_format', null);

src/Symfony/Bundle/TwigBundle/Tests/Functional/NoTemplatingEntryTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public function registerContainerConfiguration(LoaderInterface $loader)
6868
])
6969
->loadFromExtension('twig', [
7070
'strict_variables' => false, // to be removed in 5.0 relying on default
71-
'exception_controller' => null, // to be removed in 5.0 relying on default
7271
'default_path' => __DIR__.'/templates',
7372
])
7473
;

0 commit comments

Comments
 (0)