neat-php / http-server

Neat HTTP Server components
MIT License
0 stars 0 forks source link

Variadic routing doesn't replace the parent path segment #8

Open baukevdw opened 3 years ago

baukevdw commented 3 years ago

The unit-tests actually show the problem.

We should expect the route Test https://github.com/neat-php/http-server/blob/2c58adde4d5231318cf447cef5cc5915e2920516/tests/RouterTest.php#L84 While we actually get TestVariadic https://github.com/neat-php/http-server/blob/2c58adde4d5231318cf447cef5cc5915e2920516/tests/RouterTest.php#L88