File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 77
88class CarTest extends WcctaTestCase {
99
10- public function getData () {
10+ public function get_data () {
1111 return [
1212 [ 14500 , '14.500 ' , '€ 14.500 ' ],
1313 [ 12345.67 , '12345 ' , '€ 12345 ' ],
@@ -16,13 +16,13 @@ public function getData() {
1616 }
1717
1818 /**
19- * @dataProvider getData
19+ * @dataProvider get_data
2020 */
21- public function test_get_price ( $ intPrice , $ stringPrice , $ expected ) {
21+ public function test_get_price ( $ int_price , $ string_price , $ expected ) {
2222 // Arrange
23- Functions \expect ( 'number_format_i18n ' )->andReturn ( $ stringPrice );
23+ Functions \expect ( 'number_format_i18n ' )->andReturn ( $ string_price );
2424
25- $ obj = (object ) [ 'price ' => $ intPrice ];
25+ $ obj = (object ) [ 'price ' => $ int_price ];
2626 $ sut = new Car ( $ obj );
2727
2828 // Act
You can’t perform that action at this time.
0 commit comments