1 | <?php |
||
18 | class ApiTestClient extends Client |
||
19 | { |
||
20 | /** |
||
21 | * @var Client |
||
22 | */ |
||
23 | private $target; |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | public function __construct(Client $client) |
||
32 | |||
33 | /** |
||
34 | * Makes a request from a Request object directly. |
||
35 | * |
||
36 | * @param Request $request A Request instance |
||
37 | * @param bool $changeHistory Whether to update the history or not (only used internally for back(), forward(), |
||
38 | * and reload()) |
||
39 | * |
||
40 | * @return Crawler |
||
41 | */ |
||
42 | public function requestFromRequest(Request $request, $changeHistory = true) |
||
46 | |||
47 | /** |
||
48 | * @return null|\Symfony\Component\HttpFoundation\Request |
||
49 | */ |
||
50 | public function getRequest() |
||
54 | |||
55 | /** |
||
56 | * @return null|\Symfony\Component\HttpFoundation\Response |
||
57 | */ |
||
58 | public function getResponse() |
||
62 | |||
63 | /** |
||
64 | * @return \Symfony\Component\DependencyInjection\ContainerInterface |
||
65 | */ |
||
66 | public function getContainer() |
||
70 | |||
71 | /** |
||
72 | * @return \Symfony\Component\HttpKernel\KernelInterface |
||
73 | */ |
||
74 | public function getKernel() |
||
78 | |||
79 | /** |
||
80 | * @return \Symfony\Component\HttpKernel\Profiler\Profile |
||
81 | */ |
||
82 | public function getProfile() |
||
86 | |||
87 | /** |
||
88 | * @return \Symfony\Component\HttpKernel\Profiler\Profile |
||
89 | */ |
||
90 | public function enableProfiler() |
||
94 | |||
95 | /** |
||
96 | * @return void |
||
97 | */ |
||
98 | public function disableReboot() |
||
102 | |||
103 | /** |
||
104 | * @return void |
||
105 | */ |
||
106 | public function enableReboot() |
||
110 | } |
||
111 |