1 | <?php |
||
12 | abstract class AbstractTestCase extends TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @var \Http\Client\HttpClient |
||
16 | */ |
||
17 | protected $httpClient; |
||
18 | |||
19 | /** |
||
20 | * @var \IBM\Watson\Common\RequestBuilderInterface |
||
21 | */ |
||
22 | protected $requestBuilder; |
||
23 | |||
24 | public function setUp() |
||
29 | |||
30 | /** |
||
31 | * Get mock response from file. |
||
32 | * |
||
33 | * @param string $path Location of the response file. |
||
34 | * @param integer $code HTTP status code. |
||
35 | * |
||
36 | * @return \GuzzleHttp\Psr7\Response |
||
37 | */ |
||
38 | public function getMockResponse($path, $code = 200) |
||
55 | } |
||
56 |