Completed
Push — master ( bd558f...6391f6 )
by WEBEWEB
02:19
created

AbstractCURLRequestTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the curl-library package.
5
 *
6
 * (c) 2017 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\CURL\Tests\Request;
13
14
use PHPUnit_Framework_TestCase;
15
use WBW\Library\CURL\Configuration\CURLConfiguration;
16
17
/**
18
 * Abstract cURL request test.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Library\CURL\Tests\Request
22
 * @abstract
23
 */
24
abstract class AbstractCURLRequestTest extends PHPUnit_Framework_TestCase {
25
26
    /**
27
     * Resource path.
28
     */
29
    const RESOURCE_PATH = "/testCall.php";
30
31
    /**
32
     * cURL configuration.
33
     *
34
     * @var CURLConfiguration
35
     */
36
    protected $configuration;
37
38
    /**
39
     * {@inheritdoc}
40
     */
41
    protected function setUp() {
42
        parent::setUp();
43
44
        // Set a cURL configuration mock.
45
        $this->configuration = new CURLConfiguration();
46
        $this->configuration->setHost("https://webeweb.fr/");
47
    }
48
49
}
50