public function testReturnsTheTokenValue() { $token = new Token(' foo ', new TokenType(TokenType::STRING_TYPE)); $expected = ' foo '; $parser = new StringTokenParser(); $actual = $parser->parse($token); $this->assertEquals($expected, $actual); }