đã tạo được test case của createUser
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Facebook\WebDriver\Exception\Internal;
|
||||
|
||||
/**
|
||||
* @deprecated To be replaced with UnexpectedResponseException in 2.0
|
||||
*/
|
||||
class WebDriverCurlException extends UnexpectedResponseException
|
||||
{
|
||||
public static function forCurlError(string $httpMethod, string $url, string $curlError, ?array $params): self
|
||||
{
|
||||
$message = sprintf('Curl error thrown for http %s to %s', $httpMethod, $url);
|
||||
|
||||
if (!empty($params)) {
|
||||
$message .= sprintf(' with params: %s', json_encode($params, JSON_UNESCAPED_SLASHES));
|
||||
}
|
||||
|
||||
$message .= "\n\n" . $curlError;
|
||||
|
||||
return new self($message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user