Skip to content

Commit 6a8cba5

Browse files
committed
Fix testsuite
1 parent bcfa9cb commit 6a8cba5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

tests/SAML2/HTTPRedirectTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44

55
namespace SAML2;
66

7+
use PHPUnit\Framework\Error\Warning;
78
use SAML2\DOMDocumentFactory;
89
use SAML2\HTTPRedirect;
910
use SAML2\AuthnRequest;
1011
use SAML2\Request;
1112
use SAML2\Response;
1213
use SAML2\XML\saml\Issuer;
1314

14-
use PHPUnit_Framework_Error_Warning;
15-
1615
class HTTPRedirectTest extends \Mockery\Adapter\Phpunit\MockeryTestCase
1716
{
1817
/**
@@ -166,12 +165,9 @@ public function testInvalidRequestData() : void
166165
$qs = 'SAMLRequest=cannotinflate';
167166
$_SERVER['QUERY_STRING'] = $qs;
168167

169-
$oldwarning = \PHPUnit\Framework\Error\Warning::$enabled;
170-
\PHPUnit\Framework\Error\Warning::$enabled = false;
171168
$this->expectException(\Exception::class, 'Error while inflating');
172169
$hr = new HTTPRedirect();
173170
$request = @$hr->receive();
174-
\PHPUnit\Framework\Error\Warning::$enabled = $oldwarning;
175171
}
176172

177173

0 commit comments

Comments
 (0)