Skip to content

Commit

Permalink
Rename test cases to correspond with tested methods
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinsFrank committed Mar 22, 2023
1 parent 7c9e091 commit f2a3537
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions tests/Unit/Currency/CurrencyAlpha3Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@ class CurrencyAlpha3Test extends TestCase
/**
* @covers ::toCurrencyNumeric
*/
public function testAllCasesCanBeConvertedToISO4217Numeric(): void
public function testAllCasesCanBeConvertedToCurrencyNumeric(): void
{
$cases = CurrencyAlpha3::cases();
static::assertNotEmpty($cases);
foreach ($cases as $case) {
try {
$case->toCurrencyNumeric();
} catch (TypeError) {
$this->fail(sprintf('Case %s could not be converted to ISO4217_Numeric', $case->name));
$this->fail(sprintf('Case %s could not be converted to CurrencyNumeric', $case->name));
}
}
}

/**
* @covers ::toCurrencyName
*/
public function testAllCasesCanBeConvertedToISO4217Name(): void
public function testAllCasesCanBeConvertedToCurrencyName(): void
{
$cases = CurrencyAlpha3::cases();
static::assertNotEmpty($cases);
foreach ($cases as $case) {
try {
$case->toCurrencyName();
} catch (TypeError) {
$this->fail(sprintf('Case %s could not be converted to ISO4217_Name', $case->name));
$this->fail(sprintf('Case %s could not be converted to CurrencyAlpha3', $case->name));
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions tests/Unit/Currency/CurrencyNameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@ class CurrencyNameTest extends TestCase
/**
* @covers ::toCurrencyNumeric
*/
public function testAllCasesCanBeConvertedToISO4217Numeric(): void
public function testAllCasesCanBeConvertedToCurrencyNumeric(): void
{
$cases = CurrencyName::cases();
static::assertNotEmpty($cases);
foreach ($cases as $case) {
try {
$case->toCurrencyNumeric();
} catch (TypeError) {
$this->fail(sprintf('Case %s could not be converted to ISO4217_Numeric', $case->name));
$this->fail(sprintf('Case %s could not be converted to CurrencyNumeric', $case->name));
}
}
}

/**
* @covers ::toCurrencyAlpha3
*/
public function testAllCasesCanBeConvertedToISO4217Alpha3(): void
public function testAllCasesCanBeConvertedToCurrencyAlpha3(): void
{
$cases = CurrencyName::cases();
static::assertNotEmpty($cases);
foreach ($cases as $case) {
try {
$case->toCurrencyAlpha3();
} catch (TypeError) {
$this->fail(sprintf('Case %s could not be converted to ISO4217_Alpha3', $case->name));
$this->fail(sprintf('Case %s could not be converted to CurrencyAlpha3', $case->name));
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions tests/Unit/Currency/CurrencyNumericTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,31 @@ class CurrencyNumericTest extends TestCase
/**
* @covers ::toCurrencyAlpha3
*/
public function testAllCasesCanBeConvertedToISO4217Alpha3(): void
public function testAllCasesCanBeConvertedToCurrencyAlpha3(): void
{
$cases = CurrencyNumeric::cases();
static::assertNotEmpty($cases);
foreach ($cases as $case) {
try {
$case->toCurrencyAlpha3();
} catch (TypeError) {
$this->fail(sprintf('Case %s could not be converted to ISO4217_Alpha3', $case->name));
$this->fail(sprintf('Case %s could not be converted to CurrencyAlpha3', $case->name));
}
}
}

/**
* @covers ::toCurrencyName
*/
public function testAllCasesCanBeConvertedToISO4217Name(): void
public function testAllCasesCanBeConvertedToCurrencyName(): void
{
$cases = CurrencyNumeric::cases();
static::assertNotEmpty($cases);
foreach ($cases as $case) {
try {
$case->toCurrencyName();
} catch (TypeError) {
$this->fail(sprintf('Case %s could not be converted to ISO4217_Name', $case->name));
$this->fail(sprintf('Case %s could not be converted to CurrencyName', $case->name));
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/Language/LanguageAlpha2Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LanguageAlpha2Test extends TestCase
/**
* @covers ::toLanguageAlpha3Bibliographic
*/
public function testAllCasesCanBeConvertedToToISO392_2Bibliographic(): void
public function testAllCasesCanBeConvertedToToLanguageAlpha3Bibliographic(): void
{
$cases = LanguageAlpha2::cases();
static::assertNotEmpty($cases);
Expand All @@ -26,7 +26,7 @@ public function testAllCasesCanBeConvertedToToISO392_2Bibliographic(): void
/**
* @covers ::toLanguageAlpha3Terminology
*/
public function testAllCasesCanBeConvertedToISO392_2Terminology(): void
public function testAllCasesCanBeConvertedToLanguageAlpha3Terminology(): void
{
$cases = LanguageAlpha2::cases();
static::assertNotEmpty($cases);
Expand All @@ -38,7 +38,7 @@ public function testAllCasesCanBeConvertedToISO392_2Terminology(): void
/**
* @covers ::toLanguageName
*/
public function testAllCasesCanBeConvertedToISO392_Name(): void
public function testAllCasesCanBeConvertedToLanguageName(): void
{
$cases = LanguageAlpha2::cases();
static::assertNotEmpty($cases);
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/Language/LanguageAlpha3BibliographicTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LanguageAlpha3BibliographicTest extends TestCase
/**
* @covers ::toLanguageAlpha2
*/
public function testAllCasesCanBeConvertedToISO639_1(): void
public function testAllCasesCanBeConvertedToLanguageAlpha2(): void
{
$cases = LanguageAlpha3Bibliographic::cases();
static::assertNotEmpty($cases);
Expand All @@ -26,7 +26,7 @@ public function testAllCasesCanBeConvertedToISO639_1(): void
/**
* @covers ::toLanguageAlpha3Terminology
*/
public function testAllCasesCanBeConvertedToISO639_2_Terminology(): void
public function testAllCasesCanBeConvertedToLanguageAlpha3Terminology(): void
{
$cases = LanguageAlpha3Bibliographic::cases();
static::assertNotEmpty($cases);
Expand All @@ -38,7 +38,7 @@ public function testAllCasesCanBeConvertedToISO639_2_Terminology(): void
/**
* @covers ::toLanguageName
*/
public function testAllCasesCanBeConvertedToISO639_Name(): void
public function testAllCasesCanBeConvertedToLanguageName(): void
{
$cases = LanguageAlpha3Bibliographic::cases();
static::assertNotEmpty($cases);
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Language/LanguageAlpha3CommonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LanguageAlpha3CommonTest extends TestCase
/**
* @covers ::toLanguageAlpha2
*/
public function testSomeCasesCanBeConvertedToISO639_1_Alpha2(): void
public function testSomeCasesCanBeConvertedToLangugaeAlpha2(): void
{
$cases = LanguageAlpha3Common::cases();
static::assertNotEmpty($cases);
Expand All @@ -27,7 +27,7 @@ public function testSomeCasesCanBeConvertedToISO639_1_Alpha2(): void
/**
* @covers ::toLanguageName
*/
public function testAllCasesCanBeConvertedToISO639_Name(): void
public function testAllCasesCanBeConvertedToLanguageName(): void
{
$cases = LanguageAlpha3Common::cases();
static::assertNotEmpty($cases);
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/Language/LanguageAlpha3TerminologyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LanguageAlpha3TerminologyTest extends TestCase
/**
* @covers ::toLanguageAlpha2
*/
public function testAllCasesCanBeConvertedToISO639_1(): void
public function testAllCasesCanBeConvertedToLanguageAlpha2(): void
{
$cases = LanguageAlpha3Terminology::cases();
static::assertNotEmpty($cases);
Expand All @@ -26,7 +26,7 @@ public function testAllCasesCanBeConvertedToISO639_1(): void
/**
* @covers ::toLanguageAlpha3Bibliographic
*/
public function testAllCasesCanBeConvertedToBibiliographical(): void
public function testAllCasesCanBeConvertedToLanguageAlpha3Bibliographic(): void
{
$cases = LanguageAlpha3Terminology::cases();
static::assertNotEmpty($cases);
Expand All @@ -38,7 +38,7 @@ public function testAllCasesCanBeConvertedToBibiliographical(): void
/**
* @covers ::toLanguageName
*/
public function testAllCasesCanBeConvertedToISO639_Name(): void
public function testAllCasesCanBeConvertedToLanguageName(): void
{
$cases = LanguageAlpha3Terminology::cases();
static::assertNotEmpty($cases);
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/Language/LanguageNameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LanguageNameTest extends TestCase
/**
* @covers ::toLanguageAlpha3Bibliographic
*/
public function testAllCasesCanBeConvertedToToISO392_2Bibliographic(): void
public function testAllCasesCanBeConvertedToLanguageAlpha3Bibliographic(): void
{
$cases = LanguageName::cases();
static::assertNotEmpty($cases);
Expand All @@ -26,7 +26,7 @@ public function testAllCasesCanBeConvertedToToISO392_2Bibliographic(): void
/**
* @covers ::toLanguageAlpha3Terminology
*/
public function testAllCasesCanBeConvertedToISO392_2Terminology(): void
public function testAllCasesCanBeConvertedToLanguageAlpha3Terminology(): void
{
$cases = LanguageName::cases();
static::assertNotEmpty($cases);
Expand All @@ -38,7 +38,7 @@ public function testAllCasesCanBeConvertedToISO392_2Terminology(): void
/**
* @covers ::toLanguageAlpha2
*/
public function testSomeCasesCanBeConvertedToISO639_1_Alpha2(): void
public function testSomeCasesCanBeConvertedToLanguageAlpha2(): void
{
$cases = LanguageName::cases();
static::assertNotEmpty($cases);
Expand Down

0 comments on commit f2a3537

Please sign in to comment.