title: Unable to whitelist files due to the use of base_path() in Laravel5
body: <p>I am trying to generate a code coverage report using PHPUnit. When I whitelist all the app directories for code coverage reports, the following error will be produced.</p>
  <p><code>Fatal error: Uncaught Error: Call to undefined method Illuminate\Container\Container::basePath() </code></p>
  <p>The base_path() function has been used in helpers and the number of controllers and each of them is producing the above error. I was able to produce a code coverage report of a file which do not use the base_path() method.</p>
  <p>I am using PHP 7.4, Laravel 5.7, PHPUnit 7.5.30, Xdebug 3.0.3</p>