Skip to content

Commit cbffec3

Browse files
authored
Update the DSN format in XML, it should be escaped
So using the same setting gives ``` Could not load "/var/www/app/phpunit.xml.dist". EntityRef: expecting ';' ``` The DSN should be escaped before added in the XML file.
1 parent 3051442 commit cbffec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/database.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ To do this, you can override the value of the ``DATABASE_URL`` env var in the
120120
<?xml version="1.0" charset="utf-8" ?>
121121
<phpunit>
122122
<php>
123-
<!-- the value is the Doctrine connection string in DSN format -->
124-
<env name="DATABASE_URL" value="mysql://USERNAME:PASSWORD@127.0.0.1/DB_NAME?charset=utf8mb4&serverVersion=5.7" />
123+
<!-- the value is the Doctrine connection string in DSN format and should be escaped -->
124+
<env name="DATABASE_URL" value="mysql://USERNAME:PASSWORD@127.0.0.1/DB_NAME?charset=utf8mb4&amp;serverVersion=5.7" />
125125
</php>
126126
<!-- ... -->
127127
</phpunit>

0 commit comments

Comments
 (0)