| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function testGetSynonymsAsString() |
||
| 21 | { |
||
| 22 | $synonyms = Synonyms::config()->get('synonyms'); |
||
| 23 | |||
| 24 | $rendered = Synonyms::getSynonymsAsString(); |
||
| 25 | |||
| 26 | $this->assertStringEndsWith("\n", $rendered); |
||
| 27 | |||
| 28 | // Add 1 to the count, because the rendered string ends with a newline, thus adding one item to the array |
||
| 29 | $this->assertCount(count($synonyms) + 1, explode("\n", $rendered)); |
||
| 30 | } |
||
| 31 | } |