1
1
<?php
2
2
3
3
/*
4
- * This file is part of https://github.com/josantonius/php-http-status-code repository.
5
- *
6
- * (c) Josantonius <hello@josantonius.dev>
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
4
+ * This file is part of https://github.com/josantonius/php-http-status-code repository.
5
+ *
6
+ * (c) Josantonius <hello@josantonius.dev>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ *
11
+ * @phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
12
+ */
11
13
12
14
namespace Josantonius \HttpStatusCode \Tests ;
13
15
@@ -29,14 +31,14 @@ public function setUp(): void
29
31
$ this ->httpStatusCodeEs = new HttpStatusCode ('es ' );
30
32
}
31
33
32
- public function testShouldFailIfUnsupportedLanguageIsUsed ()
34
+ public function test_should_fail_if_unsupported_language_is_used ()
33
35
{
34
36
$ this ->expectException (UnsupportedLanguageException::class);
35
37
36
38
new HttpStatusCode ('fr ' );
37
39
}
38
40
39
- public function testShouldGetMessage ()
41
+ public function test_should_get_message ()
40
42
{
41
43
$ this ->assertEquals (
42
44
'Request Time-out ' ,
@@ -49,15 +51,15 @@ public function testShouldGetMessage()
49
51
);
50
52
}
51
53
52
- public function testShouldGetMessages ()
54
+ public function test_should_get_messages ()
53
55
{
54
56
$ messages = $ this ->httpStatusCodeEn ->getMessages ();
55
57
56
58
$ this ->assertIsArray ($ messages );
57
59
$ this ->assertArrayHasKey (408 , $ messages );
58
60
}
59
61
60
- public function testShouldGetDefinition ()
62
+ public function test_should_get_definition ()
61
63
{
62
64
$ this ->assertStringContainsString (
63
65
'The server timed out waiting for the request. ' ,
@@ -70,15 +72,15 @@ public function testShouldGetDefinition()
70
72
);
71
73
}
72
74
73
- public function testShouldGetDefinitions ()
75
+ public function test_should_get_definitions ()
74
76
{
75
77
$ definitions = $ this ->httpStatusCodeEn ->getDefinitions ();
76
78
77
79
$ this ->assertIsArray ($ definitions );
78
80
$ this ->assertArrayHasKey (408 , $ definitions );
79
81
}
80
82
81
- public function testShouldGetAll ()
83
+ public function test_should_get_all ()
82
84
{
83
85
$ all = $ this ->httpStatusCodeEn ->getAll ();
84
86
0 commit comments