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