Ejemplo n.º 1
0
 /**
  * Test that paths are bound in application as expected.
  *
  * @return void
  */
 public function testBindingOfPathsOnApplication()
 {
     $lampSace = new Application(__DIR__);
     $this->assertTrue($lampSace->has('path.base'));
     $this->assertTrue($lampSace->has('path.app'));
     $this->assertEquals(__DIR__, $lampSace->make('path.base'));
 }
Ejemplo n.º 2
0
 /**
  * Test basic handling of a request.
  *
  * @return void
  */
 public function testBasicHandlingOfARequest()
 {
     $request = Request::create('', 'GET');
     $requestHandler = $this->lampSace->make(RequestHandler::class);
     $requestHandler->handle($request);
 }