Commit cffbd5e
committed
minor #8861 Added tip to require browser-kit in WebTestCase. (Rubinum, Tim Jabs)
This PR was merged into the 4.0 branch.
Discussion
----------
Added tip to require browser-kit in WebTestCase.
Hello,
I played around with the WebTestCase in Symfony 4+ and I came across that fact, that you have to require the browser-kit component to use the WebTestCase class.
For people who don't know the internals of symfony, it can be hard to figure out what to do now, because all they got is this error message:
```
php bin/phpunit tests
#!/usr/bin/env php
PHPUnit 6.5.3 by Sebastian Bergmann and contributors.
Testing tests
PHP Fatal error: Class 'Symfony\Component\BrowserKit\Client' not found in /media/tim/996cb512-7026-4e7a-8f4b-f2f38c02939f/tim/PhpstormProjects/symfony4TestRoutes/vendor/symfony/http-kernel/Client.php on line 31
```
With the new flex system, this could be confusing for some developers, that they have to require additional packages.
It think it is good to mention that in the docs.
If I missed something here or if you think that the browser-kit should be required by the packages which provides `ẀebTestCase` and it is a WIP thing, then let me know that.
Commits
-------
9ae575b Moved tip block to headline. Changed tip description.
dcf2265 Changed spelling
b266c1b Added tip to require browser-kit in WebTestCase.1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
| |||
0 commit comments