public function testOutputGivesNoSideEffects() { $this->adapter->validateOutput(); ob_start(); $buffer = $this->adapter->output(); $sideEffectsBuffer = ob_get_clean(); $this->assertNotEmpty($buffer); $this->assertEmpty($sideEffectsBuffer); }
public function testMissingTemplateSettings() { $this->config->setTemplate(null); try { $this->adapter->validateOutput(); $this->fail(); } catch (\Exception $e) { $this->assertInstanceOf('\\Vegas\\Exporter\\Adapter\\Exception\\TemplateNotSetException', $e); } }