public function testPersistAfterExecution() { $runId = __CLASS__ . '::' . __METHOD__; $request = $this->mockRequest($runId); $runRepository = new RunRepository(); $pipeline = new Pipeline(); $response = $pipeline->execute($request); $run = $runRepository->retrieve($response->getRunId()); $this->assertNotEquals($runId, $run->getRunId()); $this->assertEquals($run->getTsAccessed(), $run->getTsCreated()); }
/** * Runs the application. */ public function run() { $this->request = $this->requestParser->parseIncoming(); if ($this->validateRequest()) { $this->response = $this->pipeline->execute($this->request); } $this->sendResponse($this->response); }