@@ -7,29 +7,29 @@ |
||
| 7 | 7 | |
| 8 | 8 | class BrokenExternalLinkTest extends SapphireTest |
| 9 | 9 | { |
| 10 | - /** |
|
| 11 | - * @param int $httpCode |
|
| 12 | - * @param string $expected |
|
| 13 | - * @dataProvider httpCodeProvider |
|
| 14 | - */ |
|
| 15 | - public function testGetHTTPCodeDescription($httpCode, $expected) |
|
| 16 | - { |
|
| 17 | - $link = new BrokenExternalLink(); |
|
| 18 | - $link->HTTPCode = $httpCode; |
|
| 19 | - $this->assertSame($expected, $link->getHTTPCodeDescription()); |
|
| 20 | - } |
|
| 10 | + /** |
|
| 11 | + * @param int $httpCode |
|
| 12 | + * @param string $expected |
|
| 13 | + * @dataProvider httpCodeProvider |
|
| 14 | + */ |
|
| 15 | + public function testGetHTTPCodeDescription($httpCode, $expected) |
|
| 16 | + { |
|
| 17 | + $link = new BrokenExternalLink(); |
|
| 18 | + $link->HTTPCode = $httpCode; |
|
| 19 | + $this->assertSame($expected, $link->getHTTPCodeDescription()); |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | - /** |
|
| 23 | - * @return array[] |
|
| 24 | - */ |
|
| 25 | - public function httpCodeProvider() |
|
| 26 | - { |
|
| 27 | - return [ |
|
| 28 | - [200, '200 (OK)'], |
|
| 29 | - [302, '302 (Found)'], |
|
| 30 | - [404, '404 (Not Found)'], |
|
| 31 | - [500, '500 (Internal Server Error)'], |
|
| 32 | - [789, '789 (Unknown Response Code)'], |
|
| 33 | - ]; |
|
| 34 | - } |
|
| 22 | + /** |
|
| 23 | + * @return array[] |
|
| 24 | + */ |
|
| 25 | + public function httpCodeProvider() |
|
| 26 | + { |
|
| 27 | + return [ |
|
| 28 | + [200, '200 (OK)'], |
|
| 29 | + [302, '302 (Found)'], |
|
| 30 | + [404, '404 (Not Found)'], |
|
| 31 | + [500, '500 (Internal Server Error)'], |
|
| 32 | + [789, '789 (Unknown Response Code)'], |
|
| 33 | + ]; |
|
| 34 | + } |
|
| 35 | 35 | } |