Skip to content

Commit e618ff3

Browse files
committed
fixed tests
2 parents a305824 + ab520a1 commit e618ff3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/ConfigCachePassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testThatCheckersAreProcessedInPriorityOrder()
2525
);
2626

2727
$definition = $this->getMockBuilder('Symfony\Component\DependencyInjection\Definition')->getMock();
28-
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerBuilder')->getMock()->setMethods(array('findTaggedServiceIds', 'getDefinition', 'hasDefinition'))->getMock();
28+
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerBuilder')->setMethods(array('findTaggedServiceIds', 'getDefinition', 'hasDefinition'))->getMock();
2929

3030
$container->expects($this->atLeastOnce())
3131
->method('findTaggedServiceIds')
@@ -50,7 +50,7 @@ public function testThatCheckersAreProcessedInPriorityOrder()
5050
public function testThatCheckersCanBeMissing()
5151
{
5252
$definition = $this->getMockBuilder('Symfony\Component\DependencyInjection\Definition')->getMock();
53-
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerBuilder')->getMock()->setMethods(array('findTaggedServiceIds'))->getMock();
53+
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerBuilder')->setMethods(array('findTaggedServiceIds'))->getMock();
5454

5555
$container->expects($this->atLeastOnce())
5656
->method('findTaggedServiceIds')

src/Symfony/Component/Process/Tests/ProcessFailedExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testProcessFailedExceptionPopulatesInformationFromProcessOutput(
4949
$errorOutput = 'FATAL: Unexpected error';
5050
$workingDirectory = getcwd();
5151

52-
$process = $this->getMockBuilder('Symfony\Component\Process\Process')->setMethods(array('isSuccessful', 'getOutput', 'getErrorOutput', 'getExitCode', 'getExitCodeText', 'isOutputDisabled', 'getWorkingDirectory'))->setConstructorArgs(array($cmd));
52+
$process = $this->getMockBuilder('Symfony\Component\Process\Process')->setMethods(array('isSuccessful', 'getOutput', 'getErrorOutput', 'getExitCode', 'getExitCodeText', 'isOutputDisabled', 'getWorkingDirectory'))->setConstructorArgs(array($cmd))->getMock();
5353
$process->expects($this->once())
5454
->method('isSuccessful')
5555
->will($this->returnValue(false));

0 commit comments

Comments
 (0)