Test Failed
Push — master ( 1b7368...050678 )
by Fran
25:16 queued 22:49
created

AuthServiceTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
namespace PSFS\tests\examples;
3
4
use PSFS\base\Request;
5
use PSFS\base\Service;
6
7
/**
8
 * Class AuthServiceTest
9
 * @package PSFS\tests\examples
10
 */
11
final class AuthServiceTest extends Service {
12
13
    public function test($user, $password) {
14
        $this->setUrl('https://jsonplaceholder.typicode.com/todos');
15
        $this->addAuthHeader($user, $password);
16
        $this->addRequestToken($password, 'TEST');
17
        $this->setDebug(true);
18
        $this->setIsJson();
19
        $this->setType(Request::VERB_GET);
20
        $this->callSrv();
21
    }
22
23
}
24