[BUGFIX] Improve functional test execution on Windows system 17/36517/3
authorNicole Cordes <typo3@cordes.co>
Sat, 31 Jan 2015 15:18:52 +0000 (16:18 +0100)
committerNicole Cordes <typo3@cordes.co>
Sat, 31 Jan 2015 16:17:19 +0000 (17:17 +0100)
commit4d411c4035199cdb3ff51f1c97faa31fba0b12a8
tree60bf8ce1bf1821e73360696f629fd7f789036d72
parent2edb4ddd72ba40b841bbfa829e2a4e6a57bdc894
[BUGFIX] Improve functional test execution on Windows system

On Windows systems you can execute several commands using '&' like
set typo3DatabaseUsername=root & set typo3DatabasePassword=root.
Unfortunately Windows sets those parameter with a trailing space. This
causes database connections not to work. Therefore the patch adds a trim
on getting system environment variables for database credentials for
functional tests.

Furthermore the PHP versions on Windows throw a warning on setting the
database name when the connection is closed. The warning is caught by
PHPUnit but the database tables aren't initialized correctly. This patch
adds an '@' to mute the warning.

Releases: master, 6.2
Resolves: #64680
Change-Id: If649b5bd440a3bd504f028a3c9c96c9d294d380c
Reviewed-on: http://review.typo3.org/36517
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/core/Tests/FunctionalTestCaseBootstrapUtility.php