phmLabs / LiveTest2

LiveTest2
MIT License
5 stars 9 forks source link

Avoid PHP Warning, if a TestCase has no UseSessionItem configured #36

Open sebastianneubert opened 11 years ago

sebastianneubert commented 11 years ago

This happens, if you switch off all UseSession items in a test case.

Build in a check, if the array has valid content or cast the given parameter to an array.

PHP Warning: Invalid argument supplied for foreach() in /livetest2/src/LiveTest/Config/Tags/TestSuite/UseSessions.php on line 13

phmLabs commented 11 years ago

Does this solve the problem?

https://github.com/phmLabs/LiveTest2/pull/37