Skip to content

Commit 12ec230

Browse files
committed
fixed PHPUnit deprecations
1 parent f3ae7ec commit 12ec230

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/DependencyInjection/Compiler/AddSwiftMailerTransportPassTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ class AddSwiftMailerTransportPassTest extends \PHPUnit_Framework_TestCase
2828
protected function setUp()
2929
{
3030
$this->compilerPass = new AddSwiftMailerTransportPass();
31-
$this->definition = $this->getMock('\Symfony\Component\DependencyInjection\Definition');
31+
$this->definition = $this->getMockBuilder('\Symfony\Component\DependencyInjection\Definition')->getMock();
3232
$this->definition->expects($this->any())
3333
->method('getArgument')
3434
->with(0)
3535
->will($this->returnValue(new Reference('swiftmailer')));
36-
$this->container = $this->getMock('\Symfony\Component\DependencyInjection\ContainerBuilder', array('getParameter', 'getDefinition', 'hasDefinition', 'addMethodCall'));
36+
$this->container = $this->getMockBuilder('\Symfony\Component\DependencyInjection\ContainerBuilder')
37+
->setMethods(array('getParameter', 'getDefinition', 'hasDefinition', 'addMethodCall'))->getMock();
3738
$this->container->expects($this->any())
3839
->method('getParameter')
3940
->with('monolog.swift_mailer.handlers')

0 commit comments

Comments
 (0)