|
@@ 35-42 (lines=8) @@
|
| 32 |
|
* |
| 33 |
|
* @dataProvider formatProvider |
| 34 |
|
*/ |
| 35 |
|
public function testBasic($format) |
| 36 |
|
{ |
| 37 |
|
$path = $this->getDocument('documentSimple', $format); |
| 38 |
|
|
| 39 |
|
static::assertFileExists($path, 'File does not exist'); |
| 40 |
|
static::assertGreaterThan(0, filesize($path), 'File is empty'); |
| 41 |
|
static::assertStringEqualsFile($path, '"Foo","Bar"'.PHP_EOL.'"Hello","World"'.PHP_EOL, 'Unexpected content'); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
/** |
| 45 |
|
* @param string $format |
|
@@ 51-58 (lines=8) @@
|
| 48 |
|
* |
| 49 |
|
* @dataProvider formatProvider |
| 50 |
|
*/ |
| 51 |
|
public function testDocumentTemplate($format) |
| 52 |
|
{ |
| 53 |
|
$path = $this->getDocument('documentTemplate.csv', $format); |
| 54 |
|
|
| 55 |
|
static::assertFileExists($path, 'File does not exist'); |
| 56 |
|
static::assertGreaterThan(0, filesize($path), 'File is empty'); |
| 57 |
|
static::assertStringEqualsFile($path, '"Hello2","World"'.PHP_EOL.'"Foo","Bar2"'.PHP_EOL, 'Unexpected content'); |
| 58 |
|
} |
| 59 |
|
} |
| 60 |
|
|