Completed
Push — master ( 11bcb0...db7b2e )
by NexusLink
02:44
created

LinkHighLighterTest::replaceWebLinksTest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace LinkEmailHighLighter\Tests\src\Services;
4
5
use LinkEmailHighLighter\src\Services\LinkHighLighter;
6
7
class LinkHighLighterTest extends \PHPUnit_Framework_TestCase {
8
9
    /**
10
     * @test
11
     */
12
    public function replaceWebLinksTest() 
13
    {
14
        $output = LinkHighLighter::replaceWebLinks('Lorem Ipsum http://www.google.co.in Lorem Ipsum');
15
        $expectedOutPut = 'Lorem Ipsum <a href="http://www.google.co.in" target="_blank">http://www.google.co.in</a> Lorem Ipsum';
16
        $this->assertEquals($expectedOutPut, $output);
17
    }
18
19
}
20