diff --git a/tests/Routing/RouteTest.php b/tests/Routing/RouteTest.php index 3022613f4..9198df15b 100644 --- a/tests/Routing/RouteTest.php +++ b/tests/Routing/RouteTest.php @@ -72,7 +72,7 @@ public function createRoute($methods = 'GET', string $pattern = '/', $callable = ->will(function ($args) use ($value) { $value .= $args[0]; $this->__toString()->willReturn($value); - return 0; + return strlen($value); }); $streamProphecy @@ -821,7 +821,7 @@ public function testRouteCallableIsResolvedUsingContainerWhenCallableResolverIsP ->will(function ($args) use ($value) { $value .= $args[0]; $this->__toString()->willReturn($value); - return 0; + return strlen($value); }); $streamProphecy