| 1 | <?php |
||
| 15 | class URLCheck implements EnvironmentCheck |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $url; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $testString; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $url The URL to check, relative to the site (homepage is ''). |
||
| 29 | * @param string $testString An optional piece of text to search for on the homepage. |
||
| 30 | */ |
||
| 31 | public function __construct($url = '', $testString = '') |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritDoc} |
||
| 39 | * |
||
| 40 | * @return array |
||
| 41 | * @throws HTTPResponse_Exception |
||
| 42 | */ |
||
| 43 | public function check() |
||
| 63 | } |
||
| 64 |