| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function testNamedParameters() { |
||
| 14 | $popup = new TemplatedPopup( 'MyTemplate', '' ); |
||
| 15 | |||
| 16 | $this->assertSame( |
||
| 17 | '{{MyTemplate|title=MyTitle|latitude=4|longitude=2|userparam=|Has text=foo|foo|Has more=bar|bar}}', |
||
| 18 | $popup->getWikiText( |
||
| 19 | 'MyTitle', |
||
| 20 | new LatLongValue( 4, 2 ), |
||
| 21 | [ |
||
| 22 | 'Has text' => 'foo', |
||
| 23 | 'Has more' => 'bar' |
||
| 24 | ] |
||
| 25 | ) |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | |||
| 30 |