public function testEvent() { $step = new Step(); $stepName = 'step-name'; $stepTitle = 'step-title'; $event = new StepStartedEvent($stepName); $event->withTitle($stepTitle); $event->process($step); $this->assertEquals(Status::PASSED, $step->getStatus()); $this->assertEquals($stepTitle, $step->getTitle()); $this->assertNotEmpty($step->getStart()); $this->assertEquals($stepName, $step->getName()); $this->assertEmpty($step->getStop()); $this->assertEmpty($step->getSteps()); $this->assertEmpty($step->getAttachments()); }
protected function processStepStartedEvent(StepStartedEvent $event) { $step = new Step(); $event->process($step); $this->getStepStorage()->put($step); }