pyrocms / pyrocms

Pyro is an experienced and powerful Laravel PHP CMS.

Home Page:https://www.pyrocms.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[streams-platform] Running phpunit breaks commented env lines and doesn't clean up after itself.

fryiee opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Run PHPUnit on a project that has more than one commented env line, e.g.
#TEST=TEST
#TEST2=TEST2
#TEST3=TEST3

2 See the following

#TEST=TEST
1=#TEST2=TEST2
2=#TEST3=TEST3
  1. In addition, the test env variable DUMMY_TEST is present.

Expected behavior
PHPUnit tests clean up after themselves in setUp/tearDown, and don't mess with existing commented lines when running Read/Write/ReloadEnvironmentFile tests.