public function expectTokens($tokens) { foreach ($tokens as $token) { $this->expect($token->getType(), $token->getValue()); } return $this; }