Skip to content

Commit

Permalink
Fix test names
Browse files Browse the repository at this point in the history
  • Loading branch information
ynikitin-etsy committed Nov 1, 2023
1 parent a175236 commit 012162a
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions tests/Unit/Extension/Propagator/XCloudTrace/UtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ class UtilsTest extends TestCase
{

/**
* @dataProvider for_test_leftZeroPad
* @dataProvider for_test_left_zero_pad
*/
public function test_leftZeroPad(string $pad, int $howMuch, string $equalsTo) : void
public function test_left_zero_pad(string $pad, int $howMuch, string $equalsTo) : void
{
$this->assertEquals(Utils::leftZeroPad($pad, $howMuch), $equalsTo, "Given leftZeroPad($pad, $howMuch) != $equalsTo");
}

public function for_test_leftZeroPad() : array {
public function for_test_left_zero_pad() : array {
return [
['a', 3, '00a'],
['aaa', 3, 'aaa'],
Expand All @@ -31,14 +31,14 @@ public function for_test_leftZeroPad() : array {
}

/**
* @dataProvider for_test_decToHex
* @dataProvider for_test_dec_to_hex
*/
public function test_decToHex(string $decNum, string $equalsTo) : void
public function test_dec_to_hex(string $decNum, string $equalsTo) : void
{
$this->assertEquals(Utils::decToHex($decNum), $equalsTo, "Given decToHex($decNum) != $equalsTo");
}

public function for_test_decToHex() : array {
public function for_test_dec_to_hex() : array {
return [
['10', 'a'],
['1', '1'],
Expand All @@ -49,14 +49,14 @@ public function for_test_decToHex() : array {
}

/**
* @dataProvider for_test_hexToDec
* @dataProvider for_test_hex_to_dec
*/
public function test_hexToDec(string $hexNum, string $equalsTo) : void
public function test_hex_to_dec(string $hexNum, string $equalsTo) : void
{
$this->assertEquals(Utils::hexToDec($hexNum), $equalsTo, "Given hexToDec($hexNum) != $equalsTo");
}

public function for_test_hexToDec() : array {
public function for_test_hex_to_dec() : array {
return [
['a', '10'],
['B', '11'],
Expand All @@ -74,14 +74,14 @@ public function for_test_hexToDec() : array {
}

/**
* @dataProvider for_test_isBigNum
* @dataProvider for_test_is_big_num
*/
public function test_isBigNum(int|float $num, bool $equalsTo) : void
public function test_is_big_num(int|float $num, bool $equalsTo) : void
{
$this->assertEquals(Utils::isBigNum($num), $equalsTo, "Given isBigNum($num) != $equalsTo");
}

public function for_test_isBigNum() : array {
public function for_test_is_big_num() : array {
return [
[-100.5, false],
[-1, false],
Expand All @@ -96,15 +96,15 @@ public function for_test_isBigNum() : array {
}

/**
* @dataProvider for_test_baseConvert
* @dataProvider for_test_base_convert
*/
public function test_baseConvert(string $num, int $fromBase, int $toBase, string $equalsTo) : void
public function test_base_convert(string $num, int $fromBase, int $toBase, string $equalsTo) : void
{
$result = Utils::baseConvert($num, $fromBase, $toBase);
$this->assertEquals($result, $equalsTo, "Given baseConvert($num, $fromBase, $toBase) != $equalsTo (result=$result)");
}

public function for_test_baseConvert() : array {
public function for_test_base_convert() : array {
return [
['b', 16, 10, '11'],
['c', 16, 10, '12'],
Expand Down

0 comments on commit 012162a

Please sign in to comment.