/** * @expectedException \LogicException */ public function testSetContent() { $content = $this->getMock('Symfony\\Cmf\\Component\\Routing\\RouteReferrersReadInterface'); $redirect = new RedirectRoute(); $redirect->setContent($content); }