@@ -29,13 +29,13 @@ discard block |
||
29 | 29 | |
30 | 30 | foreach ($this->regExs as $regEx) { |
31 | 31 | if ($regEx['isRegEx']) { |
32 | - if (preg_match('^' . $regEx['pattern'] . '^', (string)$response->getBody()) == 0) { |
|
33 | - $errors[] = 'Regular expression: ' . $regEx['pattern']; |
|
32 | + if (preg_match('^'.$regEx['pattern'].'^', (string) $response->getBody()) == 0) { |
|
33 | + $errors[] = 'Regular expression: '.$regEx['pattern']; |
|
34 | 34 | } |
35 | 35 | } else { |
36 | - var_dump(preg_match('^' . preg_quote($regEx['pattern']) . '^', (string)$response->getBody())); |
|
37 | - if (preg_match('^' . preg_quote($regEx['pattern']) . '^', (string)$response->getBody()) == 0) { |
|
38 | - $errors[] = 'Text: ' . $regEx['pattern']; |
|
36 | + var_dump(preg_match('^'.preg_quote($regEx['pattern']).'^', (string) $response->getBody())); |
|
37 | + if (preg_match('^'.preg_quote($regEx['pattern']).'^', (string) $response->getBody()) == 0) { |
|
38 | + $errors[] = 'Text: '.$regEx['pattern']; |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $errorString = "The following text elements where not found: <ul>"; |
45 | 45 | |
46 | 46 | foreach ($errors as $error) { |
47 | - $errorString .= "<li>" . $error . "</li>"; |
|
47 | + $errorString .= "<li>".$error."</li>"; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | $errorString .= "</ul>"; |