We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent44d3761 commitcd605ceCopy full SHA for cd605ce
contributing/code/tests.rst
@@ -64,6 +64,18 @@ what's going on and if the tests are broken because of the new code.
64
On Windows, install the `Cmder`_, `ConEmu`_, `ANSICON`_ or `Mintty`_ free applications
65
to see colored test results.
66
67
+Testing Generated Code
68
+----------------------
69
+
70
+Some tests generate code on the fly and check that it matches expected stored in
71
+in a file. To regenerate those files, you can use the following approach, run
72
+the tests with the environment variable ``TEST_GENERATE_FIXTURES`` set to ``1``:
73
74
+..code-block::terminal
75
76
+ $ TEST_GENERATE_FIXTURES=1 php ./phpunit src/Symfony/Component/Config/Tests/Builder/GeneratedConfigTest.php
77
78
79
.. _`install Composer`:https://getcomposer.org/download/
80
.. _Cmder:https://cmder.app/
81
.. _ConEmu:https://conemu.github.io/