Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class NormaliserTest extends TestCase |
||
9 | { |
||
10 | public function testClearComments() |
||
11 | { |
||
12 | $zone = file_get_contents(__DIR__.'/Resources/testClearComments_sample.txt'); |
||
13 | $expectation = str_replace("\r\n", "\n", file_get_contents(__DIR__.'/Resources/testClearComments_expectation.txt')); |
||
14 | $this->assertEquals($expectation, Normaliser::normalise($zone)); |
||
15 | } |
||
16 | |||
17 | public function testCollapseMultilines() |
||
18 | { |
||
19 | $zone = file_get_contents(__DIR__.'/Resources/testCollapseMultilines_sample.txt'); |
||
20 | $expectation = str_replace("\r\n", "\n", file_get_contents(__DIR__.'/Resources/testCollapseMultilines_expectation.txt')); |
||
21 | $this->assertEquals($expectation, Normaliser::normalise($zone)); |
||
22 | } |
||
24 |