| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function testRender() |
||
| 26 | { |
||
| 27 | $engine = new Engine(); |
||
| 28 | $this->assertEquals( |
||
| 29 | 'Oh! The cat jumped onto the table', |
||
| 30 | $engine->render( |
||
| 31 | 'Oh! {subj.det} {subj.np} {verb} onto {w.where.det} {w.where.np}', |
||
| 32 | array( |
||
| 33 | 'verb' => 'jumped', |
||
| 34 | 'subj' => array('det' => 'The', 'np' => 'cat'), |
||
| 35 | 'w' => array('where' => array('det' => 'the', 'np' => 'table')) |
||
| 36 | ) |
||
| 37 | ) |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | |||
| 54 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.