@@ -19,23 +19,23 @@ private static function currencyListSize(\Money\Currencies $currencies)
1919 return $ size ;
2020 }
2121
22- public function testIsValidCurrency ()
22+ public function test_is_valid_currency ()
2323 {
2424 $ mock = $ this ->getMockForTrait (CurrenciesTrait::class);
2525
2626 static ::assertTrue ($ mock ->isValidCurrency ('USD ' ));
2727 static ::assertTrue ($ mock ->isValidCurrency (new Currency ('USD ' )));
2828 }
2929
30- public function testIsNotValidCurrency ()
30+ public function test_is_not_valid_currency ()
3131 {
3232 $ mock = $ this ->getMockForTrait (CurrenciesTrait::class);
3333
3434 static ::assertFalse ($ mock ->isValidCurrency ('FAIL ' ));
3535 static ::assertFalse ($ mock ->isValidCurrency (new Currency ('FAIL ' )));
3636 }
3737
38- public function testGetISOCurrencies ()
38+ public function test_get_iso_currencies ()
3939 {
4040 $ mock = $ this ->getMockForTrait (CurrenciesTrait::class);
4141
@@ -44,24 +44,24 @@ public function testGetISOCurrencies()
4444 static ::assertArrayHasKey ('USD ' , $ mock ->getISOCurrencies ());
4545 }
4646
47- public function testGetCurrencies ()
47+ public function test_get_currencies ()
4848 {
4949 $ mock = $ this ->getMockForTrait (CurrenciesTrait::class);
5050
5151 static ::assertInstanceOf (\Money \Currencies::class, $ mock ->getCurrencies ());
5252 static ::assertInstanceOf (\Money \Currencies \AggregateCurrencies::class, $ mock ->getCurrencies ());
5353 }
5454
55- public function testSetCurrencies ()
55+ public function test_set_currencies ()
5656 {
5757 $ mock = $ this ->getMockForTrait (CurrenciesTrait::class);
58- $ mock ->setCurrencies (new \Money \Currencies \BitcoinCurrencies () );
58+ $ mock ->setCurrencies (new \Money \Currencies \BitcoinCurrencies );
5959
6060 static ::assertInstanceOf (\Money \Currencies::class, $ mock ->getCurrencies ());
6161 static ::assertInstanceOf (\Money \Currencies \BitcoinCurrencies::class, $ mock ->getCurrencies ());
6262 }
6363
64- public function testSetCurrenciesCustomCurrencies ()
64+ public function test_set_currencies_custom_currencies ()
6565 {
6666 $ mock = $ this ->getMockForTrait (CurrenciesTrait::class);
6767 $ mock ->setCurrencies ([
@@ -84,7 +84,7 @@ public function testSetCurrenciesCustomCurrencies()
8484 static ::assertEquals (3 , $ mock ->getCurrencies ()->subunitFor (new Currency ('MY2 ' )));
8585 }
8686
87- public function testSetCurrenciesWrongISOCurrencyCode ()
87+ public function test_set_currencies_wrong_iso_currency_code ()
8888 {
8989 $ this ->expectException (\InvalidArgumentException::class);
9090 $ mock = $ this ->getMockForTrait (CurrenciesTrait::class);
@@ -98,7 +98,7 @@ public function testSetCurrenciesWrongISOCurrencyCode()
9898 ]);
9999 }
100100
101- public function testSetCurrenciesWrongBitcoinCurrencyCode ()
101+ public function test_set_currencies_wrong_bitcoin_currency_code ()
102102 {
103103 $ this ->expectException (\InvalidArgumentException::class);
104104 $ mock = $ this ->getMockForTrait (CurrenciesTrait::class);
@@ -112,17 +112,17 @@ public function testSetCurrenciesWrongBitcoinCurrencyCode()
112112 ]);
113113 }
114114
115- public function testSetCurrenciesWrongStandardCurrenciesConfig ()
115+ public function test_set_currencies_wrong_standard_currencies_config ()
116116 {
117117 $ this ->expectException (\InvalidArgumentException::class);
118118 $ mock = $ this ->getMockForTrait (CurrenciesTrait::class);
119119 $ mock ->setCurrencies ([
120- 'iso ' => new stdClass () ,
120+ 'iso ' => new stdClass ,
121121 'bitcoin ' => 'all ' ,
122122 ]);
123123 }
124124
125- public function testSetCurrenciesEmptyCurrenciesConfig ()
125+ public function test_set_currencies_empty_currencies_config ()
126126 {
127127 $ mock = $ this ->getMockForTrait (CurrenciesTrait::class);
128128 $ mock ->setCurrencies ([
@@ -135,36 +135,36 @@ public function testSetCurrenciesEmptyCurrenciesConfig()
135135 static ::assertEquals (0 , static ::currencyListSize ($ mock ->getCurrencies ()));
136136 }
137137
138- public function testSetCurrenciesDefaultCurrenciesConfig ()
138+ public function test_set_currencies_default_currencies_config ()
139139 {
140140 $ mock = $ this ->getMockForTrait (CurrenciesTrait::class);
141141 $ mock ->setCurrencies ([]);
142142
143143 static ::assertInstanceOf (ISOCurrencies::class, $ mock ->getCurrencies ());
144144 }
145145
146- public function testSetCurrenciesAllISOCurrencies ()
146+ public function test_set_currencies_all_iso_currencies ()
147147 {
148148 $ mock = $ this ->getMockForTrait (CurrenciesTrait::class);
149149 $ mock ->setCurrencies ([
150150 'iso ' => 'all ' ,
151151 ]);
152152
153153 static ::assertEquals (
154- new \Money \Currencies \AggregateCurrencies ([new ISOCurrencies () ]),
154+ new \Money \Currencies \AggregateCurrencies ([new ISOCurrencies ]),
155155 $ mock ->getCurrencies ()
156156 );
157157 }
158158
159- public function testSetCurrenciesAllBitcoinCurrencies ()
159+ public function test_set_currencies_all_bitcoin_currencies ()
160160 {
161161 $ mock = $ this ->getMockForTrait (CurrenciesTrait::class);
162162 $ mock ->setCurrencies ([
163163 'bitcoin ' => 'all ' ,
164164 ]);
165165
166166 static ::assertEquals (
167- new \Money \Currencies \AggregateCurrencies ([new \Money \Currencies \BitcoinCurrencies () ]),
167+ new \Money \Currencies \AggregateCurrencies ([new \Money \Currencies \BitcoinCurrencies ]),
168168 $ mock ->getCurrencies ()
169169 );
170170 }
0 commit comments