use Psr\Log\LoggerInterface;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Controller\ContainerControllerResolver;
class ContainerControllerResolverTest extends ControllerResolverTest
{ public function testGetControllerService() { $service =
new ControllerTestService('foo'
);
$container =
$this->
createMockContainer();
$container->
expects($this->
once()) ->
method('has'
) ->
with('foo'
) ->
willReturn(true
);
$container->
expects($this->
once()) ->
method('get'
) ->
with('foo'
) ->
willReturn($service) ;
$resolver =
$this->
createControllerResolver(null,
$container);