public function testBeach() { $journey = new TemplateMethod\BeachJourney(); $this->expectOutputRegex('#sun-bathing#'); $journey->takeATrip(); }
public function testCanGetOnVacationOnTheBeach() { $beachJourney = new TemplateMethod\BeachJourney(); $beachJourney->takeATrip(); $this->assertEquals(['Buy a flight ticket', 'Taking the plane', 'Swimming and sun-bathing', 'Taking the plane'], $beachJourney->getThingsToDo()); }