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

StringUtilsTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 1
f 0
dl 0
loc 6
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetValidVariableName() 0 4 1
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