Skip to content

Commit

Permalink
Fix tests to session_regenerate_id
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Jun 23, 2020
1 parent 7af426d commit 860eaa9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
Expand Up @@ -101,16 +101,7 @@ public function provideSession()
// TODO Mock が動作しないためスキップ
continue;
}
if ($name == 'regenerate') {
// XXX PHP7.4.5-7.4.7, 7.3.17-7.3.19 のバグでエラーになるためスキップ
// see https://github.com/symfony/symfony/pull/36485#issuecomment-615928699
if (PHP_VERSION_ID === 70405) continue;
if (PHP_VERSION_ID === 70406) continue;
if (PHP_VERSION_ID === 70407) continue;
if (PHP_VERSION_ID === 70317) continue;
if (PHP_VERSION_ID === 70318) continue;
if (PHP_VERSION_ID === 70319) continue;
}

foreach ($userAgents as $user_agent => $shouldSendSameSiteNone) {
yield [$name, $user_agent, $shouldSendSameSiteNone];
}
Expand Down
1 change: 1 addition & 0 deletions tests/Fixtures/session/regenerate.expected
Expand Up @@ -11,6 +11,7 @@ validateId
read
doRead: abc|i:123;
read
doRead: abc|i:123;

write
doWrite: abc|i:123;
Expand Down
1 change: 1 addition & 0 deletions tests/Fixtures/session/regenerate.samesite-compat.expected
Expand Up @@ -11,6 +11,7 @@ validateId
read
doRead: abc|i:123;
read
doRead: abc|i:123;

write
doWrite: abc|i:123;
Expand Down
1 change: 1 addition & 0 deletions tests/Fixtures/session/regenerate.samesite.expected
Expand Up @@ -11,6 +11,7 @@ validateId
read
doRead: abc|i:123;
read
doRead: abc|i:123;

write
doWrite: abc|i:123;
Expand Down
1 change: 1 addition & 0 deletions tests/Fixtures/session/regenerate.secure.expected
Expand Up @@ -11,6 +11,7 @@ validateId
read
doRead: abc|i:123;
read
doRead: abc|i:123;

write
doWrite: abc|i:123;
Expand Down

0 comments on commit 860eaa9

Please sign in to comment.