-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCurlClientTest.php
More file actions
33 lines (25 loc) · 703 Bytes
/
CurlClientTest.php
File metadata and controls
33 lines (25 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Class HTTPClientTest
*
* @created 28.08.2018
* @author smiley <smiley@chillerlan.net>
* @copyright 2018 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\HTTPTest;
use chillerlan\HTTP\RequestException;
use chillerlan\HTTPTest\ClientFactories\CurlClientFactory;
use PHPUnit\Framework\Attributes\Group;
/**
*
*/
#[Group('slow')]
final class CurlClientTest extends HTTPClientTestAbstract{
protected string $HTTP_CLIENT_FACTORY = CurlClientFactory::class;
public function testRequestError():void{
$this->expectException(RequestException::class);
$this->httpClient->sendRequest($this->requestFactory->createRequest('GET', ''));
}
}