Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Updated testing/* articles to Symfony 4#8705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
testing.rst Outdated
| To run your functional tests, the ``WebTestCase`` class needs to know which | ||
| is the application kernel to bootstrap it. The kernel class is usually | ||
| defined in the ``KERNEL_CLASS`` environment variable (included in the | ||
| default ``phpunit .xml-dist`` file provided by Symfony): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
phpunit.xml.dist
testing.rst Outdated
| <php> | ||
| <servername="KERNEL_DIR"value="/path/to/your/app/" /> | ||
| <!-- the value is the FQCN of the application kernel--> | ||
| <servername="KERNEL_CLASS"value="App\Kernel" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
now should be<env ... />?https://github.com/symfony/recipes/blob/master/phpunit/phpunit/4.7/phpunit.xml.dist#L12
testing/database.rst Outdated
| dbname:testdb | ||
| user:testdb | ||
| password:testdb | ||
| url:'mysql://USERNAME:PASSWORD@127.0.0.1/DB_NAME?charset=utf8mb4&serverVersion=5.7' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
As Doctrine configuration has defined an environment variable'%env(resolve:DATABASE_URL)%' for all env, I guess we should do the changes inphpunit.xml.dist file, adding<env name="DATABASE_URL" value="..."/>? then this whole configuration will be gone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Much better. Thanks!
…uiluz)This PR was merged into the 3.3 branch.Discussion----------Removed a deprecated feature in a testing articleSpotted while working on#8705.This is no longer needed because all profiler storage engines were removed:https://symfony.com/doc/current/profiler/storage.htmlCommits-------eb30e13 Removed a deprecated feature in a testing article
No description provided.