Example #1
0
 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());
 }
Example #2
0
 /**
  * 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);
 }