1 | <?php |
||
27 | class Phiremock extends CodeceptionModule |
||
28 | { |
||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $config = [ |
||
33 | 'host' => 'localhost', |
||
34 | 'port' => '8086', |
||
35 | 'resetBeforeEachTest' => false, |
||
36 | ]; |
||
37 | |||
38 | /** |
||
39 | * @var \Mcustiel\Phiremock\Client\Phiremock |
||
40 | */ |
||
41 | private $phiremock; |
||
42 | |||
43 | public function _beforeSuite($settings = []) |
||
48 | |||
49 | public function _before(TestInterface $test) |
||
56 | |||
57 | public function expectARequestToRemoteServiceWithAResponse(Expectation $expectation) |
||
61 | |||
62 | public function haveACleanSetupInRemoteService() |
||
66 | |||
67 | public function dontExpectRequestsInRemoteService() |
||
72 | |||
73 | public function haveCleanScenariosInRemoteService() |
||
77 | |||
78 | public function didNotReceiveRequestsInRemoteService() |
||
82 | |||
83 | /** |
||
84 | * @param int $times |
||
85 | * @param RequestBuilder $builder |
||
86 | * |
||
87 | * @throws \Exception |
||
88 | */ |
||
89 | public function seeRemoteServiceReceived($times, RequestBuilder $builder) |
||
98 | |||
99 | /** |
||
100 | * @param RequestBuilder $builder |
||
101 | * |
||
102 | * @return array |
||
103 | */ |
||
104 | public function grabRequestsMadeToRemoteService(RequestBuilder $builder) |
||
108 | } |
||
109 |