Skip to content

Commit 67087ec

Browse files
committed
Refactoring
1 parent 26c52f1 commit 67087ec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/wccta/CarTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class 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

0 commit comments

Comments
 (0)