From a7988a08aa5fd7c5471b16c897fddfe299f06ee4 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 20 Oct 2017 12:19:37 +0200 Subject: [PATCH] Adjust CSV test refs #2655 --- test/php/library/Icinga/File/CsvTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/php/library/Icinga/File/CsvTest.php b/test/php/library/Icinga/File/CsvTest.php index 048e3b073..6eba5fdc0 100644 --- a/test/php/library/Icinga/File/CsvTest.php +++ b/test/php/library/Icinga/File/CsvTest.php @@ -6,6 +6,7 @@ namespace Tests\Icinga\File; use Icinga\Data\DataArray\ArrayDatasource; use Icinga\File\Csv; use Icinga\Test\BaseTestCase; +use Icinga\Util\Buffer; class CsvTest extends BaseTestCase { @@ -16,8 +17,6 @@ class CsvTest extends BaseTestCase array('col1' => 'val5', 'col2' => 'val6', 'col3' => 'val7', 'col4' => 'val8') )); - $csv = Csv::fromQuery($data->select()); - $this->assertEquals( implode( "\r\n", @@ -27,7 +26,7 @@ class CsvTest extends BaseTestCase '"val5","val6","val7","val8"' ) ) . "\r\n", - (string) $csv, + (string) Csv::queryToStream($data->select(), new Buffer()), 'Csv does not render valid/correct csv structured data' ); }