Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public function testCreateAndSetAuthentication() |
||
10 | { |
||
11 | $auth = new \Ipag\Classes\Authentication('[email protected]', '123456'); |
||
12 | $auth->setPartner('[email protected]'); |
||
13 | |||
14 | $this->assertEquals($auth->getIdentification(), '[email protected]'); |
||
15 | $this->assertEquals($auth->getApiKey(), '123456'); |
||
16 | $this->assertEquals($auth->getPartner(), '[email protected]'); |
||
17 | |||
18 | $auth->setIdentification('[email protected]') |
||
19 | ->setApiKey('654321'); |
||
20 | |||
21 | $this->assertEquals($auth->getIdentification(), '[email protected]'); |
||
22 | $this->assertEquals($auth->getApiKey(), '654321'); |
||
23 | } |
||
25 |