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

UnderscoreNamingStrategyTest::testTransformName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
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\UnderscoreNamingStrategy;
13
14
class UnderscoreNamingStrategyTest extends \PHPUnit_Framework_TestCase
15
{
16
    public function testTransformName()
17
    {
18
        $strategy = new UnderscoreNamingStrategy();
19
        static::assertEquals('test_property_name', $strategy->transformName('TestPropertyName'));
20
    }
21
}
22