title: How to use phpunit testing with local api
body: <p>I've got 2 docker containers, one with apiplatform and one with symfony which connecting to this api with docker container name, so my url in browser is different than url that connects containers.<br></p>
  <pre><code>url browser: http://apilocal/  
  url container: http://api/
  </code></pre>
  <p>I can't use phpunit test, cause in my controller i use http://api/ and it isnt visible throught browser, so everytime it repsonse 500.</p>
  <p>Is there any way to do this properly?</p>