@@ 33-42 (lines=10) @@ | ||
30 | $this->assertEquals('EUR', $this->currency->getDefaultCurrency()); |
|
31 | } |
|
32 | ||
33 | public function testDefaultCurrencySymbol() |
|
34 | { |
|
35 | $this->currencyBundle |
|
36 | ->expects($this->once()) |
|
37 | ->method('getCurrencySymbol') |
|
38 | ->with('EUR') |
|
39 | ->will($this->returnValue('€')); |
|
40 | ||
41 | $this->assertEquals('€', $this->currency->getCurrencySymbol()); |
|
42 | } |
|
43 | ||
44 | public function testCurrencySymbol() |
|
45 | { |
|
@@ 44-53 (lines=10) @@ | ||
41 | $this->assertEquals('€', $this->currency->getCurrencySymbol()); |
|
42 | } |
|
43 | ||
44 | public function testCurrencySymbol() |
|
45 | { |
|
46 | $this->currencyBundle |
|
47 | ->expects($this->once()) |
|
48 | ->method('getCurrencySymbol') |
|
49 | ->with('USD') |
|
50 | ->will($this->returnValue('$')); |
|
51 | ||
52 | $this->assertEquals('$', $this->currency->getCurrencySymbol('USD')); |
|
53 | } |
|
54 | ||
55 | public function testDefaultCurrencyName() |
|
56 | { |
|
@@ 55-64 (lines=10) @@ | ||
52 | $this->assertEquals('$', $this->currency->getCurrencySymbol('USD')); |
|
53 | } |
|
54 | ||
55 | public function testDefaultCurrencyName() |
|
56 | { |
|
57 | $this->currencyBundle |
|
58 | ->expects($this->once()) |
|
59 | ->method('getCurrencyName') |
|
60 | ->with('EUR') |
|
61 | ->will($this->returnValue('Euro')); |
|
62 | ||
63 | $this->assertEquals('Euro', $this->currency->getCurrencyName()); |
|
64 | } |
|
65 | ||
66 | public function testCurrencyName() |
|
67 | { |
|
@@ 66-75 (lines=10) @@ | ||
63 | $this->assertEquals('Euro', $this->currency->getCurrencyName()); |
|
64 | } |
|
65 | ||
66 | public function testCurrencyName() |
|
67 | { |
|
68 | $this->currencyBundle |
|
69 | ->expects($this->once()) |
|
70 | ->method('getCurrencyName') |
|
71 | ->with('USD') |
|
72 | ->will($this->returnValue('US Dollar')); |
|
73 | ||
74 | $this->assertEquals('US Dollar', $this->currency->getCurrencyName('USD')); |
|
75 | } |
|
76 | } |
|
77 |