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