예제 #1
0
파일: AppTest.php 프로젝트: netom/bulletphp
 public function testSingleResourceGet()
 {
     $app = new Bullet\App();
     $app->resource('test', function () {
         return 'resource';
     });
     $res = $app->run(new Bullet\Request('GET', '/test/'));
     $this->assertEquals('resource', $res->content());
 }