Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function appendAroundTest() |
||
13 | { |
||
14 | $stringTagAppendar = new StringTagAppendar(); |
||
15 | |||
16 | $content = "This content has some dummy text. I want to highlight dummy text with bold tag."; |
||
17 | |||
18 | $actualResult = $stringTagAppendar->appendAround($content, "dummy", "<b>"); |
||
19 | |||
20 | $expectedResult = "This content has some <b>dummy</b> text. I want to highlight <b>dummy</b> text with bold tag."; |
||
21 | |||
22 | $this->assertEquals($expectedResult, $actualResult); |
||
23 | } |
||
24 | } |
||
25 |