Skip to content

Commit 56d1fb3

Browse files
committed
fix risky test
1 parent fc6564b commit 56d1fb3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/functional/InvalidEPPNTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ public static function provider()
1515
public function testInitGetSSO(string $eppn, bool $is_valid): void
1616
{
1717
global $SSO;
18-
self::expectNotToPerformAssertions();
1918
$original_server = $_SERVER;
2019
$original_sso = $SSO;
2120
if (session_status() == PHP_SESSION_ACTIVE) {
2221
session_write_close();
2322
session_id(uniqid());
2423
}
25-
if (!$is_valid) {
24+
if ($is_valid) {
25+
self::expectNotToPerformAssertions();
26+
} else {
2627
$this->expectException(SSOException::class);
2728
}
2829
try {

0 commit comments

Comments
 (0)