public function it_evaluates_expressions($language, SlashCommand $command) { $command->offsetGet('text')->willReturn('2 + 2'); $language->evaluate('2 + 2', [])->willReturn('4'); $this->execute($command)->get('text')->shouldReturn('4'); }