fixed tests
This commit is contained in:
commit
e618ff3ecb
@ -25,7 +25,7 @@ class ConfigCachePassTest extends \PHPUnit_Framework_TestCase
|
|||||||
);
|
);
|
||||||
|
|
||||||
$definition = $this->getMockBuilder('Symfony\Component\DependencyInjection\Definition')->getMock();
|
$definition = $this->getMockBuilder('Symfony\Component\DependencyInjection\Definition')->getMock();
|
||||||
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerBuilder')->getMock()->setMethods(array('findTaggedServiceIds', 'getDefinition', 'hasDefinition'))->getMock();
|
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerBuilder')->setMethods(array('findTaggedServiceIds', 'getDefinition', 'hasDefinition'))->getMock();
|
||||||
|
|
||||||
$container->expects($this->atLeastOnce())
|
$container->expects($this->atLeastOnce())
|
||||||
->method('findTaggedServiceIds')
|
->method('findTaggedServiceIds')
|
||||||
@ -50,7 +50,7 @@ class ConfigCachePassTest extends \PHPUnit_Framework_TestCase
|
|||||||
public function testThatCheckersCanBeMissing()
|
public function testThatCheckersCanBeMissing()
|
||||||
{
|
{
|
||||||
$definition = $this->getMockBuilder('Symfony\Component\DependencyInjection\Definition')->getMock();
|
$definition = $this->getMockBuilder('Symfony\Component\DependencyInjection\Definition')->getMock();
|
||||||
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerBuilder')->getMock()->setMethods(array('findTaggedServiceIds'))->getMock();
|
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerBuilder')->setMethods(array('findTaggedServiceIds'))->getMock();
|
||||||
|
|
||||||
$container->expects($this->atLeastOnce())
|
$container->expects($this->atLeastOnce())
|
||||||
->method('findTaggedServiceIds')
|
->method('findTaggedServiceIds')
|
||||||
|
@ -49,7 +49,7 @@ class ProcessFailedExceptionTest extends \PHPUnit_Framework_TestCase
|
|||||||
$errorOutput = 'FATAL: Unexpected error';
|
$errorOutput = 'FATAL: Unexpected error';
|
||||||
$workingDirectory = getcwd();
|
$workingDirectory = getcwd();
|
||||||
|
|
||||||
$process = $this->getMockBuilder('Symfony\Component\Process\Process')->setMethods(array('isSuccessful', 'getOutput', 'getErrorOutput', 'getExitCode', 'getExitCodeText', 'isOutputDisabled', 'getWorkingDirectory'))->setConstructorArgs(array($cmd));
|
$process = $this->getMockBuilder('Symfony\Component\Process\Process')->setMethods(array('isSuccessful', 'getOutput', 'getErrorOutput', 'getExitCode', 'getExitCodeText', 'isOutputDisabled', 'getWorkingDirectory'))->setConstructorArgs(array($cmd))->getMock();
|
||||||
$process->expects($this->once())
|
$process->expects($this->once())
|
||||||
->method('isSuccessful')
|
->method('isSuccessful')
|
||||||
->will($this->returnValue(false));
|
->will($this->returnValue(false));
|
||||||
|
Reference in New Issue
Block a user