| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function versionOneIsPrependedWhenNoVersionIsDefined() |
||
| 39 | { |
||
| 40 | $request = ServerRequestFactory::fromGlobals()->withUri(new Uri('/rest/bar/baz')); |
||
| 41 | $test = $this; |
||
| 42 | $this->middleware->__invoke($request, new Response(), function (Request $req) use ($request, $test) { |
||
| 43 | $test->assertNotSame($request, $req); |
||
| 44 | $this->assertEquals('/rest/v1/bar/baz', $req->getUri()->getPath()); |
||
| 45 | }); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |