/** * Set up the test */ public function setUp() { parent::setUp(); $this->strategy = new ImageStrategy($this->requestStack, ''); $this->strategy->setContainer($this->container); $this->strategy->setRouter($this->router); }
/** * Set up the test */ public function setUp() { parent::setUp(); $this->translator = Phake::mock('Symfony\\Component\\Translation\\TranslatorInterface'); Phake::when($this->translator)->trans(Phake::anyParameters())->thenReturn($this->translation); $this->strategy = new VideoStrategy($this->requestStack, '', $this->translator); $this->strategy->setContainer($this->container); $this->strategy->setRouter($this->router); }