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

Skip to content
This repository was archived by the owner on Feb 6, 2022. It is now read-only.

Commit 23fbe6f

Browse files
committed
Remove obsolete code
1 parent 882399d commit 23fbe6f

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

DependencyInjection/Configuration.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,6 @@ private function getMailersNode()
128128
return $recurse($v['stream-option']);
129129
})
130130
->end()
131-
->validate()
132-
->ifTrue(function ($v) {
133-
return !method_exists('Swift_Transport_EsmtpTransport', 'setStreamOptions');
134-
})
135-
->thenInvalid('stream_options is only available in Swiftmailer 5.4.2 or later.')
136-
->end()
137131
->end()
138132
->scalarNode('encryption')
139133
->defaultNull()

Tests/DependencyInjection/SwiftmailerExtensionTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,6 @@ public function testSmtpConfig($type)
320320
*/
321321
public function testStreamOptions($type)
322322
{
323-
if (!method_exists('Swift_Transport_EsmtpTransport', 'setStreamOptions')) {
324-
$this->markTestSkipped('This test requires Swiftmailer 5.4.2 or later.');
325-
}
326-
327323
$container = $this->loadContainerFromFile('stream_options', $type);
328324
$this->assertEquals('example.org', $container->getParameter('swiftmailer.mailer.default.transport.smtp.host'));
329325
$this->assertEquals('12345', $container->getParameter('swiftmailer.mailer.default.transport.smtp.port'));
@@ -424,11 +420,6 @@ public function testDisableDeliveryWithEnvVars()
424420
private function loadContainerFromFile($file, $type, array $services = [], $skipEnvVars = false)
425421
{
426422
$container = new ContainerBuilder();
427-
428-
if ($skipEnvVars && !method_exists($container, 'resolveEnvPlaceholders')) {
429-
$this->markTestSkipped('Runtime environment variables has been introduced in the Dependency Injection version 3.2.');
430-
}
431-
432423
$container->setParameter('kernel.debug', false);
433424
$container->setParameter('kernel.cache_dir', '/tmp');
434425

0 commit comments

Comments
 (0)