1 | <?php |
||
30 | class UnreachablePath extends AbstractCheck |
||
31 | { |
||
32 | /** |
||
33 | * Get all paths to be tested |
||
34 | * |
||
35 | * @return string[] |
||
36 | */ |
||
37 | public function getPaths() |
||
42 | |||
43 | /** |
||
44 | * Test that paths are inaccessible |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | public function checkPaths() |
||
57 | |||
58 | /** |
||
59 | * Test that a path is inaccessible |
||
60 | * |
||
61 | * @param string $path |
||
62 | * |
||
63 | * @return array |
||
64 | */ |
||
65 | public function checkPath($path) |
||
70 | |||
71 | /** |
||
72 | * Build response array |
||
73 | * |
||
74 | * @param string $path |
||
75 | * @param Response $response |
||
76 | * |
||
77 | * @return string[] |
||
78 | */ |
||
79 | protected function prepareResponse($path, Response $response) |
||
87 | |||
88 | /** |
||
89 | * Get the status string for the given response |
||
90 | * |
||
91 | * @param Response $response |
||
92 | * |
||
93 | * @return mixed |
||
94 | */ |
||
95 | protected function getUnreachableStatus(Response $response) |
||
107 | } |
||
108 |