Skip to content

Commit 2da69df

Browse files
loks0nclaude
andcommitted
Format: single-quote 'route' in HttpTest
Pint catch from CI — sed introduced double quotes when replacing \$http->getRoute() with \$http->getResource('route'). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 694d807 commit 2da69df

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/HttpTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ public function testCanMatchRoute(string $method, string $path, ?string $url = n
413413
$_SERVER['REQUEST_URI'] = $url;
414414

415415
$this->assertSame($expected, $this->http->match(new Request()));
416-
$this->assertSame($expected, $this->http->getResource("route"));
416+
$this->assertSame($expected, $this->http->getResource('route'));
417417
}
418418

419419
public function testNoMismatchRoute(): void
@@ -442,7 +442,7 @@ public function testNoMismatchRoute(): void
442442
$route = $this->http->match(new Request(), fresh: true);
443443

444444
$this->assertNull($route);
445-
$this->assertNull($this->http->getResource("route"));
445+
$this->assertNull($this->http->getResource('route'));
446446
}
447447
}
448448

@@ -457,20 +457,20 @@ public function testCanMatchFreshRoute(): void
457457
$_SERVER['REQUEST_URI'] = '/path1';
458458
$matched = $this->http->match(new Request());
459459
$this->assertSame($route1, $matched);
460-
$this->assertSame($route1, $this->http->getResource("route"));
460+
$this->assertSame($route1, $this->http->getResource('route'));
461461

462462
// Second request match returns cached route
463463
$_SERVER['REQUEST_METHOD'] = 'HEAD';
464464
$_SERVER['REQUEST_URI'] = '/path2';
465465
$request2 = new Request();
466466
$matched = $this->http->match($request2, fresh: false);
467467
$this->assertSame($route1, $matched);
468-
$this->assertSame($route1, $this->http->getResource("route"));
468+
$this->assertSame($route1, $this->http->getResource('route'));
469469

470470
// Fresh match returns new route
471471
$matched = $this->http->match($request2, fresh: true);
472472
$this->assertSame($route2, $matched);
473-
$this->assertSame($route2, $this->http->getResource("route"));
473+
$this->assertSame($route2, $this->http->getResource('route'));
474474
} catch (\Exception $e) {
475475
$this->fail($e->getMessage());
476476
}
@@ -484,7 +484,7 @@ public function testCanMatchRootRouteWhenUriHasNoPath(): void
484484
$_SERVER['REQUEST_URI'] = 'https://example.com?x=1';
485485

486486
$this->assertSame($route, $this->http->match(new Request()));
487-
$this->assertSame($route, $this->http->getResource("route"));
487+
$this->assertSame($route, $this->http->getResource('route'));
488488
}
489489

490490
public function testCanRunRequest(): void

0 commit comments

Comments
 (0)