Skip to content

Commit dd9f4ea

Browse files
committed
Minor rewords
1 parent 53a4b11 commit dd9f4ea

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

testing/database.rst

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,16 @@ about :ref:`using multiple .env files in Symfony applications <configuration-mul
3131
Resetting the Database Automatically Before each Test
3232
-----------------------------------------------------
3333

34-
Tests should be independent from each other to avoid side effects. However, if
35-
some test modifies the database (for example by adding or removing an element)
36-
it could impact the other tests. Run the following command to install a bundle
37-
that ensures that each test is run with a new and unmodified copy of the database:
34+
Tests should be independent from each other to avoid side effects. For example,
35+
if some test modifies the database (by adding or removing an entity) it could
36+
change the results of other tests. Run the following command to install a bundle
37+
that ensures that each test is run with the same unmodified database:
3838

3939
.. code-block:: terminal
4040
4141
$ composer require --dev dama/doctrine-test-bundle
4242
43-
Now, enable it as a PHPUnit extension (PHPUnit 8 or higher) or a listener
44-
(PHPUnit 7 or lower):
43+
Now, enable it as a PHPUnit extension or listener:
4544

4645
.. code-block:: xml
4746
@@ -60,10 +59,10 @@ Now, enable it as a PHPUnit extension (PHPUnit 8 or higher) or a listener
6059
</listeners>
6160
</phpunit>
6261
63-
This bundle uses a clever trick to create a new database for each test without
64-
scarifying performance: it begins a transaction before every test case and rolls
65-
it back automatically after the test finished. Read more in the documentation of
66-
the `DAMADoctrineTestBundle`_.
62+
This bundle uses a clever trick to avoid side effects without scarifying
63+
performance: it begins a database transaction before every test and rolls it
64+
back automatically after the test finishes to undo all changes. Read more in the
65+
documentation of the `DAMADoctrineTestBundle`_.
6766

6867
.. _doctrine-fixtures:
6968

0 commit comments

Comments
 (0)