| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function interpolateMessageBasic() |
||
| 24 | { |
||
| 25 | $message = 'The {0} brown {1} jumped over the {3} {1}'; |
||
| 26 | $context = [ |
||
| 27 | 'quick', |
||
| 28 | 'fox', |
||
| 29 | new \StdClass(), //not usable as replacement will be skipped |
||
| 30 | 'lazy', |
||
| 31 | ]; |
||
| 32 | |||
| 33 | $this->assertSame( |
||
| 34 | 'The quick brown fox jumped over the lazy fox', |
||
| 35 | $this->interpolateMessage($message, $context) |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |