You are here

protected function TranslatorListenerTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/EventListener/TranslatorListenerTest.php \Symfony\Component\HttpKernel\Tests\EventListener\TranslatorListenerTest::setUp()

File

vendor/symfony/http-kernel/Tests/EventListener/TranslatorListenerTest.php, line 26

Class

TranslatorListenerTest

Namespace

Symfony\Component\HttpKernel\Tests\EventListener

Code

protected function setUp() {
  $this->translator = $this
    ->getMock('Symfony\\Component\\Translation\\TranslatorInterface');
  $this->requestStack = $this
    ->getMock('Symfony\\Component\\HttpFoundation\\RequestStack');
  $this->listener = new TranslatorListener($this->translator, $this->requestStack);
}