Completed
Push — master ( 3a75c3...4b4c57 )
by Rafael
04:18
created

CamelCaseNamingStrategyTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testTransformName() 0 8 1
1
<?php
2
3
/**
4
 * LICENSE: This file is subject to the terms and conditions defined in
5
 * file 'LICENSE', which is part of this source code package.
6
 *
7
 * @copyright 2016 Copyright(c) - All rights reserved.
8
 */
9
10
namespace Rafrsr\LibArray2Object\Tests\Naming;
11
12
use Rafrsr\LibArray2Object\Naming\CamelCaseNamingStrategy;
13
14
class CamelCaseNamingStrategyTest extends \PHPUnit_Framework_TestCase
15
{
16
    public function testTransformName()
17
    {
18
        $strategy = new CamelCaseNamingStrategy();
19
        static::assertEquals('testNameProperty', $strategy->transformName('test_name_property'));
20
21
        $strategy = new CamelCaseNamingStrategy(true);
22
        static::assertEquals('TestNameProperty', $strategy->transformName('test_name_property'));
23
    }
24
}
25