Skip to content

Commit

Permalink
Merge pull request #4586 from nanasess/fix-testcase
Browse files Browse the repository at this point in the history
Fix testcase to session_regenerate_id()
  • Loading branch information
okazy committed Jun 26, 2020
2 parents a7ff5a5 + 97ec984 commit d66ebf7
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 d66ebf7

Please sign in to comment.