TestCase::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 10
c 0
b 0
f 0
ccs 5
cts 5
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Copyright (c) 2019 - present
4
 * updown - TestCase.php
5
 * author: Roberto Belotti - [email protected]
6
 * web : robertobelotti.com, github.com/biscolab
7
 * Initial version created on: 15/2/2019
8
 * MIT license: https://github.com/biscolab/updown-php/blob/master/LICENSE
9
 */
10
11
namespace Biscolab\UpDown\Tests;
12
13
use Biscolab\UpDown\Fields\UpDownRequestFields;
14
use Biscolab\UpDown\Objects\Check;
15
use Biscolab\UpDown\UpDown;
16
use PHPUnit\Framework\TestCase as BaseTestCase;
17
18
/**
19
 * Class TestCase
20
 * @package Biscolab\ReCaptcha\Tests
21
 */
22
class TestCase extends BaseTestCase
23
{
24
25
    /**
26
     * @var UpDown
27
     */
28
    protected $updown = null;
29
30
    /**
31
     * @var Check
32
     */
33
    protected $check;
34
35
    /**
36
     * Setup the test environment.
37
     */
38 12
    protected function setUp()
39
    {
40
41 12
        parent::setUp(); // TODO: Change the autogenerated stub
42
43 12
        $this->updown = UpDown::init([
44 12
            UpDownRequestFields::API_KEY => $_ENV['API_KEY']
45
        ]);
46
47 12
        $this->check = new Check();
48 12
    }
49
}
50