8p / EightPointsGuzzleBundle

⛽️ Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony
MIT License
440 stars 71 forks source link

Cannot stub or mock class or interface "Symfony\Component\Stopwatch\Stopwatch" which does not exist #229

Closed rrajkomar closed 6 years ago

rrajkomar commented 6 years ago

PHP : 7.1.11 PHPUnit: 6.5.13 When running the tests I get this on almost every ExtensionTest and ProfileMiddlewareTest :

Cannot stub or mock class or interface "Symfony\Component\Stopwatch\Stopwatch" which does not exist

Error : Class 'Symfony\Component\Stopwatch\Stopwatch' not found
 /opt/web/GIT/EightPointsGuzzleBundle/tests/Middleware/ProfileMiddlewareTest.php:22

Error : Class 'Symfony\Component\Stopwatch\Stopwatch' not found
 /opt/web/GIT/EightPointsGuzzleBundle/tests/Middleware/ProfileMiddlewareTest.php:45
gregurco commented 6 years ago

Created PR #230 with fix.

gregurco commented 6 years ago

PR #230 was merged. Now it should be ok.