Skip to content

Commit ff52334

Browse files
committed
refactor: change notation type in methods
The notation type in the test function names has been changed from camel to snake case for readability. Closes #2
1 parent 3b85454 commit ff52334

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

tests/LanguageCodeTest.php

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
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

1214
namespace 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

Comments
 (0)