/** * Assert that newsletter preview opened in new window and template content correct * * @param Browser $browser * @param TemplatePreview $templatePreview * @param Template $newsletter * @return void */ public function processAssert(Browser $browser, TemplatePreview $templatePreview, Template $newsletter) { $browser->selectWindow(); $content = $templatePreview->getContent()->getPageContent(); $browser->closeWindow(); \PHPUnit_Framework_Assert::assertEquals($content, $newsletter->getText(), 'Template content not correct information.'); }