Symfony 2 Functional Testing external URL

后端 未结 1 732
栀梦
栀梦 2021-01-16 14:04

Whatever I do, I always get a

Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException: \"No route found for [...]\"

1条回答
  •  囚心锁ツ
    2021-01-16 14:31

    It's not possible, because $client actually doesn't send any http request (you may notice that when you try run your "functional" test with www server disabled - they still should work). Instead of that it simulates http request and run normal Symfony's dispatching.

    0 讨论(0)
提交回复
热议问题