minor #23627 Remove unused mocks/vars (ro0NL)
This PR was merged into the 3.2 branch.
Discussion
----------
Remove unused mocks/vars
| Q | A
| ------------- | ---
| Branch? | 3.2
Spotted in #23624
Commits
-------
445c56aa3e
Remove unused mocks/vars
This commit is contained in:
commit
a2d36536ea
@ -71,10 +71,6 @@ class RouterDebugCommandTest extends TestCase
|
||||
->will($this->returnValue($routeCollection))
|
||||
;
|
||||
|
||||
$loader = $this->getMockBuilder('Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader')
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
|
||||
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock();
|
||||
$container
|
||||
->expects($this->once())
|
||||
|
@ -70,10 +70,6 @@ class RouterMatchCommandTest extends TestCase
|
||||
->will($this->returnValue($requestContext))
|
||||
;
|
||||
|
||||
$loader = $this->getMockBuilder('Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader')
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
|
||||
$container = $this->getMockBuilder('Symfony\Component\DependencyInjection\ContainerInterface')->getMock();
|
||||
$container
|
||||
->expects($this->atLeastOnce())
|
||||
|
@ -61,7 +61,7 @@ class ConfigDebugCommandTest extends WebTestCase
|
||||
public function testDumpUndefinedBundleOption()
|
||||
{
|
||||
$tester = $this->createCommandTester();
|
||||
$ret = $tester->execute(array('name' => 'TestBundle', 'path' => 'foo'));
|
||||
$tester->execute(array('name' => 'TestBundle', 'path' => 'foo'));
|
||||
|
||||
$this->assertContains('Unable to find configuration for "test.foo"', $tester->getDisplay());
|
||||
}
|
||||
|
Reference in New Issue
Block a user