function CSVExporterTest::testFilename in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/aklump/loft_data_grids/tests/phpunit/CSVExporterTest.php \AKlump\LoftDataGrids\CSVExporterTest::testFilename()
File
- vendor/
aklump/ loft_data_grids/ tests/ CSVExporterTest.php, line 60 - 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());
}