|
@@ 36-42 (lines=7) @@
|
| 33 |
|
$this->equalsStatus($response, 200); |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
public function testHandleDynamicRequest() |
| 37 |
|
{ |
| 38 |
|
$response = $this->app->handleRequest($this->request('GET', '/foo/bar')); |
| 39 |
|
$this->equalsJson($response, ['foo' => 'bar']); |
| 40 |
|
$response = $this->app->handleRequest($this->request('GET', '/foo/foobar')); |
| 41 |
|
$this->equalsJson($response, ['foo' => 'foobar']); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
public function testHandleMiddlewareRequest() |
| 45 |
|
{ |
|
@@ 44-50 (lines=7) @@
|
| 41 |
|
$this->equalsJson($response, ['foo' => 'foobar']); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
public function testHandleMiddlewareRequest() |
| 45 |
|
{ |
| 46 |
|
$response = $this->app->handleRequest($this->request('POST', '/foo/bar')); |
| 47 |
|
$this->equalsJson($response, ['foo' => 'middleware']); |
| 48 |
|
$response = $this->app->handleRequest($this->request('POST', '/foo/not')); |
| 49 |
|
$this->equalsJson($response, ['foo' => 'bar']); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
public function testModel() |
| 53 |
|
{ |