public function parse(Token $token)
{
parent::parse($token);
$values = preg_split('/->/', $token->getValue());
if (2 !== count($values)) {
throw ExpressionLanguageExceptionFactory::createForUnparsableToken($token);
}
$fixture = $this->parser->parse($values[0]);
$method = $this->parser->parse(sprintf('<%s>', $values[1]));
try {
return new FixtureMethodCallValue($fixture, $method);
} catch (\TypeError $exception) {
throw ExpressionLanguageExceptionFactory::createForUnparsableToken($token, 0, $exception);
}
}