assertSame($token, $converter->convert($token->getValue())); } /** * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException * @expectedExceptionMessage Token is not valid. */ public function testConvertFailure() { $converter = new TokenConverter(self::$DI['app']['repo.tokens']); $converter->convert('prout'); } }