1 | <?php |
||
34 | trait SymfonyTest |
||
35 | { |
||
36 | /** |
||
37 | * @var Symfony |
||
38 | */ |
||
39 | protected $proxyClient; |
||
40 | |||
41 | /** |
||
42 | * @var SymfonyProxy |
||
43 | */ |
||
44 | protected $proxy; |
||
45 | |||
46 | /** |
||
47 | * Clear Symfony HttpCache |
||
48 | * |
||
49 | * @throws \Exception |
||
50 | */ |
||
51 | 5 | protected function setUp() |
|
55 | |||
56 | /** |
||
57 | * Get server port |
||
58 | * |
||
59 | * @return int |
||
60 | * |
||
61 | * @throws \Exception |
||
62 | */ |
||
63 | 5 | protected function getCachingProxyPort() |
|
71 | |||
72 | /** |
||
73 | * Get the hostname where your application can be reached |
||
74 | * |
||
75 | * @throws \Exception |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | 5 | protected function getHostName() |
|
89 | |||
90 | /** |
||
91 | * @return SymfonyProxy |
||
92 | */ |
||
93 | 5 | protected function getProxy() |
|
101 | |||
102 | /** |
||
103 | * Get Symfony proxy client |
||
104 | * |
||
105 | * We use a non-default method for PURGE because the built-in PHP webserver |
||
106 | * does not allow arbitrary HTTP methods. |
||
107 | * https://github.com/php/php-src/blob/PHP-5.4.1/sapi/cli/php_http_parser.c#L78-L102 |
||
108 | * |
||
109 | * @return Symfony |
||
110 | */ |
||
111 | 4 | protected function getProxyClient() |
|
125 | } |
||
126 |