You are here

function XLSExporterTest::testFilename in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/aklump/loft_data_grids/tests/XLSExporterTest.php \AKlump\LoftDataGrids\XLSExporterTest::testFilename()

File

vendor/aklump/loft_data_grids/tests/phpunit/XLSXExporterTest.php, line 66
Tests for the XLSExporter class

Class

XLSExporterTest

Namespace

AKlump\LoftDataGrids

Code

function testFilename() {
  $this->exporter2
    ->setFilename('alpha.txt');
  $this
    ->assertSame('alpha.xlsx', $this->exporter2
    ->getFilename());
  $this->exporter2
    ->setFilename('bravo.xlsx');
  $this
    ->assertSame('bravo.xlsx', $this->exporter2
    ->getFilename());
  $obj = new XLSXExporter($this->data2, 'omega.php');
  $this
    ->assertSame('omega.xlsx', $obj
    ->getFilename());
}