11<?php
22
33/*
4- * This file is part of https://github.com/josantonius/php-language-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-language-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+ */
1113
1214namespace Josantonius \LanguageCode \Tests ;
1315
@@ -27,35 +29,35 @@ public function setUp(): void
2729 $ this ->languageCode = new LanguageCode ();
2830 }
2931
30- public function testShouldGetAllLanguageCodes (): void
32+ public function test_should_get_all_language_codes (): void
3133 {
3234 $ this ->assertNotEmpty ($ this ->languageCode ->all ());
3335
3436 $ this ->assertNotEmpty ($ this ->collection ->all ());
3537 }
3638
37- public function testShouldGetLanguageCodeFromLanguageName (): void
39+ public function test_should_get_language_code_from_language_name (): void
3840 {
3941 $ this ->assertSame ('es ' , $ this ->languageCode ->getCode ('Spanish ' ));
4042
4143 $ this ->assertSame ('es ' , $ this ->collection ->getCode ('Spanish ' ));
4244 }
4345
44- public function testShouldReturnNullWithUnknownLanguageName (): void
46+ public function test_should_return_null_with_unknown_language_name (): void
4547 {
4648 $ this ->assertNull ($ this ->languageCode ->getCode ('foo ' ));
4749
4850 $ this ->assertNull ($ this ->collection ->getCode ('foo ' ));
4951 }
5052
51- public function testShouldGetLanguageNameFromLanguageCode (): void
53+ public function test_should_get_language_name_from_language_code (): void
5254 {
5355 $ this ->assertSame ('Spanish ' , $ this ->languageCode ->getName ('es ' ));
5456
5557 $ this ->assertSame ('Spanish ' , $ this ->collection ->getName ('es ' ));
5658 }
5759
58- public function testShouldReturnNullWithUnknownLanguageCode (): void
60+ public function test_should_return_null_with_unknown_language_code (): void
5961 {
6062 $ this ->assertNull ($ this ->languageCode ->getName ('bar ' ));
6163
0 commit comments