-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
|
||
.. code-block:: xml | ||
|
||
<?xml version="1.0" charset="utf-8" ?> | ||
<phpunit> | ||
<php> | ||
<server name="KERNEL_DIR" value="/path/to/your/app/" /> | ||
<!-- the value is the FQCN of the application kernel --> | ||
<server name="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:[email protected]/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 in phpunit.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 article Spotted while working on #8705. This is no longer needed because all profiler storage engines were removed: https://symfony.com/doc/current/profiler/storage.html Commits ------- eb30e13 Removed a deprecated feature in a testing article
No description provided.