Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function testConstruct() |
||
17 | { |
||
18 | $data = ['username' => 'adam', 'password' => 'adam']; |
||
19 | $request = m::mock('\IBM\Watson\Common\Message\RequestInterface'); |
||
20 | $this->response = m::mock('\IBM\Watson\Common\Message\AbstractResponse', [$request, $data])->makePartial(); |
||
21 | |||
22 | $this->assertSame($request, $this->response->getRequest()); |
||
23 | $this->assertSame($data, $this->response->getData()); |
||
24 | } |
||
25 | } |
||
26 |