Skip to content

Commit

Permalink
minor #23627 Remove unused mocks/vars (ro0NL)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.2 branch.

Discussion
----------

Remove unused mocks/vars

| Q             | A
| ------------- | ---
| Branch?       | 3.2

Spotted in #23624

Commits
-------

445c56a Remove unused mocks/vars
  • Loading branch information
ogizanagi committed Jul 22, 2017
2 parents 0793fe7 + 445c56a commit a2d3653
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
Expand Up @@ -71,10 +71,6 @@ private function getKernel()
->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())
Expand Down
Expand Up @@ -70,10 +70,6 @@ private function getKernel()
->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())
Expand Down
Expand Up @@ -61,7 +61,7 @@ public function testParametersValuesAreResolved()
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());
}
Expand Down

0 comments on commit a2d3653

Please sign in to comment.