File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 7
7
use PrinsFrank \Standards \Currency \CurrencyAlpha3 ;
8
8
use PrinsFrank \Standards \Currency \CurrencyName ;
9
9
use PrinsFrank \Standards \Currency \CurrencyNumeric ;
10
+ use PrinsFrank \Standards \Currency \CurrencySymbol ;
10
11
use TypeError ;
11
12
12
13
/**
@@ -23,7 +24,7 @@ public function testAllAlpha3CasesHaveAccessToSymbolOrNull(): void
23
24
static ::assertNotEmpty ($ cases );
24
25
foreach ($ cases as $ case ) {
25
26
try {
26
- $ case-> getSymbol ( );
27
+ CurrencySymbol:: forCurrency ( $ case );
27
28
} catch (TypeError ) {
28
29
$ this ->fail (sprintf ('Unable to retrieve symbol for %s ' , $ case ->name ));
29
30
}
@@ -39,7 +40,7 @@ public function testAllNameCasesHaveAccessToSymbolOrNull(): void
39
40
static ::assertNotEmpty ($ cases );
40
41
foreach ($ cases as $ case ) {
41
42
try {
42
- $ case-> getSymbol ( );
43
+ CurrencySymbol:: forCurrency ( $ case );
43
44
} catch (TypeError ) {
44
45
$ this ->fail (sprintf ('Unable to retrieve symbol for %s ' , $ case ->name ));
45
46
}
@@ -55,7 +56,7 @@ public function testAllNumericCasesHaveAccessToSymbolOrNull(): void
55
56
static ::assertNotEmpty ($ cases );
56
57
foreach ($ cases as $ case ) {
57
58
try {
58
- $ case-> getSymbol ( );
59
+ CurrencySymbol:: forCurrency ( $ case );
59
60
} catch (TypeError ) {
60
61
$ this ->fail (sprintf ('Unable to retrieve symbol for %s ' , $ case ->name ));
61
62
}
You can’t perform that action at this time.
0 commit comments