parse() public method

public parse ( Token $token )
$token Nelmio\Alice\FixtureBuilder\ExpressionLanguage\Token
 public function testReturnsListOfPossibleValues()
 {
     $token = new Token('@user_{alice, bob}', new TokenType(TokenType::LIST_REFERENCE_TYPE));
     $expected = new ChoiceListValue([new FixtureReferenceValue('user_alice'), new FixtureReferenceValue('user_bob')]);
     $parser = new FixtureListReferenceTokenParser();
     $actual = $parser->parse($token);
     $this->assertEquals($expected, $actual);
 }
 /**
  * @expectedException \Nelmio\Alice\Throwable\Exception\FixtureBuilder\ExpressionLanguage\ParseException
  * @expectedExceptionMessage Could not parse the token "" (type: RANGE_REFERENCE_TYPE).
  */
 public function testThrowsAnExceptionIfAMalformedTokenIsGiven()
 {
     $token = new Token('', new TokenType(TokenType::RANGE_REFERENCE_TYPE));
     $parser = new FixtureListReferenceTokenParser();
     $parser->parse($token);
 }