Skip to content

Commit 72ee701

Browse files
committed
phpunit upgraded
1 parent c3c713f commit 72ee701

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"keywords": ["saml", "saml2", "onelogin"],
88
"autoload": {
99
"classmap": [
10-
"extlib/xmlseclibs",
11-
"lib/Saml",
12-
"lib/Saml2"
13-
]
10+
"extlib/xmlseclibs",
11+
"lib/Saml",
12+
"lib/Saml2"
13+
]
1414
},
1515
"support": {
1616
"email": "[email protected]",
@@ -21,7 +21,7 @@
2121
"php": ">=5.3.2"
2222
},
2323
"require-dev": {
24-
"phpunit/phpunit": "3.7.31",
24+
"phpunit/phpunit": "5.3",
2525
"satooshi/php-coveralls": "dev-master",
2626
"sebastian/phpcpd": "*",
2727
"phploc/phploc": "*",
@@ -31,6 +31,6 @@
3131
"suggest": {
3232
"lib-openssl": "Install openssl lib in order to handle with x509 certs (require to support sign and encryption)",
3333
"ext-mcrypt": "Install mcrypt and php5-mcrypt libs in order to support encryption",
34-
"ext-gettext": "Install gettext and php5-gettext libs to handle translations"
34+
"ext-gettext": "Install gettext and php5-gettext libs to handle translations"
3535
}
3636
}

tests/src/OneLogin/Saml2/UtilsTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,10 @@ public function testDeleteLocalSession()
663663
$this->assertFalse(isset($_SESSION));
664664
$this->assertFalse(isset($_SESSION['samltest']));
665665

666+
$prev = error_reporting(0);
666667
session_start();
668+
error_reporting($prev);
669+
667670
$_SESSION['samltest'] = true;
668671
OneLogin_Saml2_Utils::deleteLocalSession();
669672
$this->assertFalse(isset($_SESSION));
@@ -679,7 +682,9 @@ public function testisSessionStarted()
679682
{
680683
$this->assertFalse(OneLogin_Saml2_Utils::isSessionStarted());
681684

685+
$prev = error_reporting(0);
682686
session_start();
687+
error_reporting($prev);
683688

684689
$this->assertTrue(OneLogin_Saml2_Utils::isSessionStarted());
685690
}

0 commit comments

Comments
 (0)