Test Failed
Push — master ( a76412...1b7368 )
by Fran
13:33 queued 14s
created

AuthServiceTest::test()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
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