Exemplo n.º 1
0
 public function testOutputWithoutHeaders()
 {
     $this->config->setExtraSettings(['skipHeaders' => true]);
     $buffer = $this->adapter->output();
     $sampleCsv = 'zażółć gęślą,jaźń';
     $this->assertSame($sampleCsv, $buffer);
 }
Exemplo n.º 2
0
 public function testInvalidCustomPageSize()
 {
     $this->config->setExtraSettings(['pageSize' => 'A20']);
     try {
         $this->adapter->validateOutput();
         $this->fail();
     } catch (\Exception $e) {
         $this->assertInstanceOf('\\Vegas\\Exporter\\Adapter\\Exception\\InvalidPageSizeException', $e);
     }
 }