Passed
Pull Request — 5.1 (#192)
by
unknown
03:02
created

StringUtilsTest::testGetValidVariableName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 2
c 1
b 1
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Test\Utils;
4
5
use PHPUnit\Framework\TestCase;
6
use TheCodingMachine\TDBM\Utils\StringUtils;
7
8
class StringUtilsTest extends TestCase
9
{
10
    public function testGetValidVariableName(): void
11
    {
12
        $this->assertEquals('threed_view', StringUtils::getValidVariableName('3d_view'));
13
        $this->assertEquals('one_thousand_four_hundred_thirty_two_var_1432_test', StringUtils::getValidVariableName('1432_var_1432_test'));
14
    }
15
}
16