Passed
Push — master ( cdf7b9...3f26c1 )
by Nicolas
02:00
created

UrlTransformerTest::testTransform()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 9
rs 9.6666
c 1
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Tests\Cp\Transformer;
4
5
use Cp\Transformer\UrlTransformer;
6
7
/**
8
 * Class UrlTransformerTest
9
 */
10
class UrlTransformerTest extends \PHPUnit_Framework_TestCase
11
{
12
    public function testTransform()
13
    {
14
        $urlTransformer = new UrlTransformer('http://www.conseils-courseapied.com');
15
16
        $expected = 'http://www.conseils-courseapied.com/plan-entrainement/'
17
            .'plan-entrainement-10km/3-seances-6-semaines.html';
18
19
        $this->assertEquals($expected, $urlTransformer->transformPlan(6, 3, 'plan-entrainement-10km'));
20
    }
21
}
22