public function testOutputWithoutHeaders() { $this->config->setExtraSettings(['skipHeaders' => true]); $buffer = $this->adapter->output(); $sampleCsv = 'zażółć gęślą,jaźń'; $this->assertSame($sampleCsv, $buffer); }
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); } }