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