| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 2 |
| 1 | <?php |
||
| 18 | public function testMustache() |
||
| 19 | { |
||
| 20 | $this->assertEquals(Mustache::replace(' Hello {{ world }}', array( |
||
| 21 | 'world' => 'world', |
||
| 22 | )), ' Hello world'); |
||
| 23 | |||
| 24 | $this->assertEquals(Mustache::replace(' Hello {{world}}', array( |
||
| 25 | 'world' => 'world', |
||
| 26 | )), ' Hello world'); |
||
| 27 | |||
| 28 | $this->assertEquals(Mustache::replace(' Hello {{ world }}', array( |
||
| 29 | 'no-world' => 'world', |
||
| 30 | )), ' Hello {{ world }}'); |
||
| 31 | |||
| 32 | $file = sprintf('%s/../fixtures/test.mustache', __DIR__); |
||
| 33 | $this->assertEquals(Mustache::replaceFromFile($file, array( |
||
| 34 | 'world' => 'world', |
||
| 35 | )), 'Hello world'); |
||
| 36 | } |
||
| 37 | } |
||
| 38 |