@@ 43-49 (lines=7) @@ | ||
40 | $this->renderer->render(array('test')); |
|
41 | } |
|
42 | ||
43 | public function testRender() |
|
44 | { |
|
45 | $item = new Item('name', 'value'); |
|
46 | $result = $this->renderer->render(array($item)); |
|
47 | ||
48 | $this->assertEquals("<meta property=\"name\" content=\"value\" />\n", $result); |
|
49 | } |
|
50 | ||
51 | public function testItProperlyEscapesValue() |
|
52 | { |
|
@@ 51-57 (lines=7) @@ | ||
48 | $this->assertEquals("<meta property=\"name\" content=\"value\" />\n", $result); |
|
49 | } |
|
50 | ||
51 | public function testItProperlyEscapesValue() |
|
52 | { |
|
53 | $item = new Item('name', 'val<javascript></javascript>ue'); |
|
54 | $result = $this->renderer->render(array($item)); |
|
55 | ||
56 | $this->assertEquals("<meta property=\"name\" content=\"val<javascript></javascript>ue\" />\n", $result); |
|
57 | } |
|
58 | } |
|
59 |