Completed
Push — master ( fefd2b...bbdd37 )
by Vincenzo
02:31
created

TextFormatterTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testDoesConvertToCamelCase() 0 6 1
1
<?php
2
3
4
use App\Lib\Helpers\TextFormatter;
5
6
class TextFormatterTest extends PHPUnit_Framework_TestCase
7
{
8
9
    /**
10
     * @group Helpers
11
     * @group TextFormatter
12
     */
13
    public function testDoesConvertToCamelCase()
14
    {
15
        $string = "a_snake_case_string";
16
        $string = TextFormatter::snakeToCamelCase($string);
17
        $this->assertFalse(strstr($string, '_'));
18
    }
19
20
}
21