@@ 96-107 (lines=12) @@ | ||
93 | $this->runtime->getOpenGraphTags(new Content()); |
|
94 | } |
|
95 | ||
96 | public function testGetOpenGraphTagsWithLoggedException() |
|
97 | { |
|
98 | $this->collector->expects($this->once()) |
|
99 | ->method('collect') |
|
100 | ->willThrowException(new \Exception()); |
|
101 | ||
102 | $this->logger->expects($this->once()) |
|
103 | ->method('error'); |
|
104 | ||
105 | $this->runtime->setThrowExceptions(false); |
|
106 | $this->runtime->getOpenGraphTags(new Content()); |
|
107 | } |
|
108 | ||
109 | public function testRenderOpenGraphTags() |
|
110 | { |
|
@@ 133-145 (lines=13) @@ | ||
130 | /** |
|
131 | * @expectedException \Exception |
|
132 | */ |
|
133 | public function testRenderOpenGraphTagsWithThrowedException() |
|
134 | { |
|
135 | $this->collector->expects($this->once()) |
|
136 | ->method('collect') |
|
137 | ->willReturn(array()); |
|
138 | ||
139 | $this->renderer->expects($this->once()) |
|
140 | ->method('render') |
|
141 | ->willThrowException(new \Exception()); |
|
142 | ||
143 | $this->runtime->setThrowExceptions(true); |
|
144 | $this->runtime->renderOpenGraphTags(new Content()); |
|
145 | } |
|
146 | ||
147 | public function testRenderOpenGraphTagsWithLoggedException() |
|
148 | { |