Isolate session on disk between test cases #46
base: master
Are you sure you want to change the base?
Conversation
This prevent side-effects between test cases via session that might or might not pre-exist on disk.
9fb2bc2
to
3888c9c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've rebased for you; pull and update your local checkout.
I've indicated one change we need, which you'll see in comments below.
You also mentioned removing some time()
usage, but I wasn't exactly sure which, so I'll have you go ahead and complete this before I merge.
As this is a QA improvement, we can merge at any time. I have some pending updates that need to be released, so I'll go ahead and do those; ping me when the tests are ready to merge.
Thanks!
test/PhpSessionPersistenceTest.php
Outdated
mkdir($this->sessionSavePath); | ||
} | ||
|
||
// remove old session test files if any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should happen in tearDown()
, to ensure we leave things clean on completion.
@weierophinney, I fixed what you suggested, and removed the |
This repository has been closed and moved to mezzio/mezzio-session-ext; a new issue has been opened at mezzio/mezzio-session-ext#2. |
This repository has been moved to mezzio/mezzio-session-ext. If you feel that this patch is still relevant, please re-open against that repository, and reference this issue. To re-open, we suggest the following workflow:
|
This prevent side-effects between test cases via session that might
or might not pre-exist on disk.
As discussed in #44 (comment). Once that other PR is merged, I'll rebase this one to remove that
time()
usage that won't be necessary anymore.Do test improvements also require a CHANGELOG entry ?
Provide a narrative description of what you are trying to accomplish:
Are you fixing a bug?
master
branch, and submit against that branch.CHANGELOG.md
entry for the fix.Are you creating a new feature?
develop
branch, and submit against that branch.CHANGELOG.md
entry for the new feature.Is this related to quality assurance?
Is this related to documentation?