File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55namespace SAML2 ;
66
7+ use PHPUnit \Framework \Error \Warning ;
78use SAML2 \DOMDocumentFactory ;
89use SAML2 \HTTPRedirect ;
910use SAML2 \AuthnRequest ;
1011use SAML2 \Request ;
1112use SAML2 \Response ;
1213use SAML2 \XML \saml \Issuer ;
1314
14- use PHPUnit_Framework_Error_Warning ;
15-
1615class 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
You can’t perform that action at this time.
0 commit comments