Add session_write_close() calls to SessionManager tests
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 16 Oct 2018 14:22:33 +0000 (10:22 -0400)
committerLegoktm <legoktm@member.fsf.org>
Tue, 16 Oct 2018 16:11:44 +0000 (16:11 +0000)
commitc1c0d243522d477799bb5ca325a100fa6a86a7fd
tree8191e4162d8e3980d5e18897414d1b15b1cc5c5d
parent7a547df7c08e0236ba09376cf786de747a4eb19c
Add session_write_close() calls to SessionManager tests

PHP 7.3 doesn't like it if session_id() is called when the session has
been started, so we need to be sure to close it first in a few tests.

Bug: T207112
Change-Id: Ief36c1bb7b5c9066f158b5bb0d6d785a7f7ddd3c
(cherry picked from commit 6698b7ea1d63fbd2e3014bf563c3ad9e937bc8dd)
tests/phpunit/includes/session/SessionBackendTest.php
tests/phpunit/includes/session/SessionManagerTest.php