/**
  * Test basic handling of a request.
  *
  * @return void
  */
 public function testBasicHandlingOfARequest()
 {
     $request = Request::create('', 'GET');
     $requestHandler = $this->lampSace->make(RequestHandler::class);
     $requestHandler->handle($request);
 }
Exemple #2
0
 /**
  * Test that the getPath method works a predicted.
  *
  * @return void
  */
 public function testGetPathMethodOnApplication()
 {
     $lampSace = new Application(__DIR__);
     $this->assertEquals(__DIR__, $lampSace->getPath());
     $this->assertEquals(__DIR__ . DIRECTORY_SEPARATOR . 'foo' . DIRECTORY_SEPARATOR . 'bar', $lampSace->getPath(['foo', 'bar']));
 }