コード例 #1
0
ファイル: ApplicationTest.php プロジェクト: rcrowe/foundation
 public function testBasicRoutingIntegration()
 {
     $app = new Application();
     $app['router']->get('/foo', function () {
         return 'bar';
     });
     $app['request'] = Request::create('/foo');
     $response = $app->dispatch($app['request']);
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $response);
     $this->assertEquals('bar', $response->getContent());
 }
コード例 #2
0
ファイル: _ide_helper.php プロジェクト: nmkr/basic-starter
 /**
  * Handle the given request and get the response.
  *
  * @param \Illuminate\Http\Request $request
  * @return \Symfony\Component\HttpFoundation\Response 
  * @static 
  */
 public static function dispatch($request)
 {
     return \Illuminate\Foundation\Application::dispatch($request);
 }