Completed
Push — master ( e2d679...4c248a )
by NexusLink
03:31
created

HighLighterTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
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 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A HighLightTest() 0 7 1
1
<?php
2
3
namespace LinkEmailHighLighter\Tests;
4
5
use LinkEmailHighLighter\HighLighter;
6
7
class HighLighterTest extends \PHPUnit_Framework_TestCase{
8
    
9
    /**
10
     * @test
11
     */
12
    public function HighLightTest()
13
    {
14
        $heighlighter = new HighLighter('');
15
        $outPut = $heighlighter->HighLight('Lorem Ipsum http://www.google.co.in lorem ipsum dummy text added for the testing purpose by [email protected]');
16
        $expected_output = 'Lorem Ipsum <a href="http://www.google.co.in" target="_blank">http://www.google.co.in</a> lorem ipsum dummy text added for the testing purpose by <a href="mailto:[email protected]">[email protected]</a>';
17
        $this->assertEquals($expected_output, $outPut);
18
    }
19
}
20