class ValuesOnlyExporterTest in Loft Data Grids 7.2
Hierarchy
- class \AKlump\LoftDataGrids\ExporterBase extends \AKlump\LoftDataGrids\PHPUnit_Framework_TestCase
- class \AKlump\LoftDataGrids\ValuesOnlyExporterTest
Expanded class hierarchy of ValuesOnlyExporterTest
File
- vendor/
aklump/ loft_data_grids/ tests/ phpunit/ ValuesOnlyExporterTest.php, line 11 - Tests for the ValuesOnlyExporter class
Namespace
AKlump\LoftDataGridsView source
class ValuesOnlyExporterTest extends ExporterBase {
public function testOutput0() {
$control = "1181\\US\\0";
$subject = $this->exporter
->export(0);
$this
->assertSame($control, $subject);
}
public function testOutput1() {
$control = "1182\\11/7/13\\Hope, Roberta";
$subject = $this->exporter
->export(1);
$this
->assertSame($control, $subject);
}
public function testOutput() {
$control = "1181\\US\\0\r\n1182\\11/7/13\\Hope, Roberta";
$subject = $this->exporter
->export();
$this
->assertSame($control, $subject);
$this
->assertMethodSaveFile();
$this
->assertSandboxFileContents($control);
}
public function testInfoValues() {
$info = $this->exporter
->getInfo();
$this
->assertSame('.txt', $info['extension']);
}
public function setUp() {
parent::setUp();
$this->exporter = new ValuesOnlyExporter($this->data);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExporterBase:: |
public | function | ||
ExporterBase:: |
public | function | Make sure that saveFile creates a file and returns the path. | |
ExporterBase:: |
public | function | ||
ExporterBase:: |
public | function | Compare the sandbox file against it's control file. | |
ExporterBase:: |
public | function | ||
ExporterBase:: |
public | function | ||
ExporterBase:: |
public | function | ||
ExporterBase:: |
public | function | @expectedException RuntimeException | |
ValuesOnlyExporterTest:: |
public | function |
Overrides ExporterBase:: |
|
ValuesOnlyExporterTest:: |
public | function | ||
ValuesOnlyExporterTest:: |
public | function | ||
ValuesOnlyExporterTest:: |
public | function | ||
ValuesOnlyExporterTest:: |
public | function |