File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ The ``getValue()`` method can also use the magic ``__get()`` method::
225225Magic ``__call() `` Method
226226~~~~~~~~~~~~~~~~~~~~~~~~~
227227
228- At last , ``getValue() `` can use the magic ``__call() `` method, but you need to
228+ Lastly , ``getValue() `` can use the magic ``__call() `` method, but you need to
229229enable this feature by using :class: `Symfony\\ Component\\ PropertyAccess\\ PropertyAccessorBuilder `::
230230
231231 // ...
Original file line number Diff line number Diff line change @@ -403,6 +403,16 @@ call ``setAutoExit(false)`` on it to get the command result in ``CommandTester``
403403 not dispatched. If you need to test those events, use the
404404 :class: `Symfony\\ Component\\ Console\\ Tester\\ ApplicationTester ` instead.
405405
406+ .. caution ::
407+
408+ When testing commands using the :class: `Symfony\\ Component\\ Console\\ Tester\\ ApplicationTester `
409+ class, don't forget to disable the auto exit flag::
410+
411+ $application = new Application();
412+ $application->setAutoExit(false);
413+
414+ $tester = new ApplicationTester($application);
415+
406416.. note ::
407417
408418 When using the Console component in a standalone project, use
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ Symfony version has deprecated some of its features.
6868 $ cd projects/my_project/
6969 $ git checkout -b testing_new_symfony
7070 # ... update composer.json configuration
71- $ composer update symfony/symfony
71+ $ composer update " symfony/*"
7272
7373 # ... after testing the new Symfony version
7474 $ git checkout master
You can’t perform that action at this time.
0 commit comments