function XLSExporterTest::testFilename in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/aklump/loft_data_grids/tests/phpunit/XLSXExporterTest.php \AKlump\LoftDataGrids\XLSExporterTest::testFilename()
File
- vendor/
aklump/ loft_data_grids/ tests/ XLSExporterTest.php, line 49 - Tests for the XLSExporter class
Class
Namespace
AKlump\LoftDataGridsCode
function testFilename() {
$this->exporter
->setFilename('alpha.txt');
$this
->assertSame('alpha.xlsx', $this->exporter
->getFilename());
$this->exporter
->setFilename('bravo.xlsx');
$this
->assertSame('bravo.xlsx', $this->exporter
->getFilename());
$obj = new XLSXExporter($this->data, 'omega.php');
$this
->assertSame('omega.xlsx', $obj
->getFilename());
}