35
35
* * shortDebugResponse *optional* - amount of chars to limit the api response length
36
36
*
37
37
* This module requires PHPBrowser or any of Framework modules enabled.
38
- *
38
+ *
39
39
* In case you need to configure low-level HTTP fields, that's done on the PHPBrowser level.
40
40
* Check the example below for details.
41
41
*
@@ -358,12 +358,9 @@ public function amNTLMAuthenticated($username, $password)
358
358
if ($ this ->isFunctional ) {
359
359
throw new ModuleException (__METHOD__ , 'Not supported by functional modules ' );
360
360
}
361
- if (!defined ('\GuzzleHttp\Client::VERSION ' )) {
361
+ if (!defined ('\GuzzleHttp\Client::MAJOR_VERSION ' ) && ! defined ( ' \GuzzleHttp\Client:: VERSION ' )) {
362
362
throw new ModuleException (__METHOD__ , 'Not supported if not using a Guzzle client ' );
363
363
}
364
- if (version_compare (\GuzzleHttp \Client::VERSION , '6.2.1 ' , 'lt ' )) {
365
- throw new ModuleException (__METHOD__ , 'Guzzle ' . \GuzzleHttp \Client::VERSION . ' found. Requires Guzzle >=6.3.0 for NTLM auth option ' );
366
- }
367
364
$ this ->client ->setAuth ($ username , $ password , 'ntlm ' );
368
365
}
369
366
@@ -1602,11 +1599,11 @@ public function startFollowingRedirects()
1602
1599
{
1603
1600
$ this ->client ->followRedirects (true );
1604
1601
}
1605
-
1602
+
1606
1603
/**
1607
1604
* Sets SERVER parameters valid for all next requests.
1608
1605
* this will remove old ones.
1609
- *
1606
+ *
1610
1607
* ```php
1611
1608
* $I->setServerParameters([]);
1612
1609
* ```
@@ -1615,10 +1612,10 @@ public function setServerParameters(array $params)
1615
1612
{
1616
1613
$ this ->client ->setServerParameters ($ params );
1617
1614
}
1618
-
1615
+
1619
1616
/**
1620
1617
* Sets SERVER parameter valid for all next requests.
1621
- *
1618
+ *
1622
1619
* ```php
1623
1620
* $I->haveServerParameter('name', 'value');
1624
1621
* ```
0 commit comments