| @@ 41-48 (lines=8) @@ | ||
| 38 | $this->assertEquals($expect, $actual); |
|
| 39 | } |
|
| 40 | ||
| 41 | public function testFormatBold() |
|
| 42 | { |
|
| 43 | $randomString = $this->randomString(); |
|
| 44 | $expect = sprintf('*%s*', $randomString); |
|
| 45 | $actual = $this->formatBold($randomString); |
|
| 46 | ||
| 47 | $this->assertEquals($expect, $actual); |
|
| 48 | } |
|
| 49 | ||
| 50 | public function testFormatItalic() |
|
| 51 | { |
|
| @@ 50-57 (lines=8) @@ | ||
| 47 | $this->assertEquals($expect, $actual); |
|
| 48 | } |
|
| 49 | ||
| 50 | public function testFormatItalic() |
|
| 51 | { |
|
| 52 | $randomString = $this->randomString(); |
|
| 53 | $expect = sprintf('_%s_', $randomString); |
|
| 54 | $actual = $this->formatItalic($randomString); |
|
| 55 | ||
| 56 | $this->assertEquals($expect, $actual); |
|
| 57 | } |
|
| 58 | ||
| 59 | public function testFormatStrikeThought() |
|
| 60 | { |
|
| @@ 59-66 (lines=8) @@ | ||
| 56 | $this->assertEquals($expect, $actual); |
|
| 57 | } |
|
| 58 | ||
| 59 | public function testFormatStrikeThought() |
|
| 60 | { |
|
| 61 | $randomString = $this->randomString(); |
|
| 62 | $expect = sprintf('~%s~', $randomString); |
|
| 63 | $actual = $this->formatStrikeThought($randomString); |
|
| 64 | ||
| 65 | $this->assertEquals($expect, $actual); |
|
| 66 | } |
|
| 67 | ||
| 68 | public function testFormatListMarker() |
|
| 69 | { |
|