[ 'mjml' => [ 'nodeBinaryPath' => 'node', 'mjmlBinaryPath' => './node_modules/mjml/bin/', 'mjmlBinary' => 'mjml', 'mjmlParams' => '-s --noStdoutFileComment', ], ], ]; /** * @test */ public function returnsHtmlResult(): void { $subject = $this->get(MjmlBasedView::class); $subject->setTemplateSource(file_get_contents(__DIR__ . '/Fixtures/Input.mjml')); $result = $subject->render(); self::assertStringEqualsFile(__DIR__ . '/Fixtures/Expected.html', $result); } }