public function it_should_allow_multiple_santas_and_multiple_directions(Santa $santa, Santa $roboSanta) { $this->beConstructedWith([$santa, $roboSanta]); $santa->moveWest()->shouldBeCalled(); $santa->moveEast()->shouldBeCalled(); $roboSanta->moveNorth()->shouldBeCalled(); $roboSanta->moveSouth()->shouldBeCalled(); $this->readDirections('<^>v'); }
public function it_can_translate_right_arrow_as_go_east(Santa $santa) { $santa->moveEast()->shouldBeCalled(); $this->parse(">"); }