public function testPostRenderWithoutLayout($expected, $body) { $document = new Document(); $document->setBody($body); $event = new CarewEvent(array($document)); $this->twigListenner->postRender($event); $this->assertSame($expected, $document->getBodyDecorated()); }