From e5f4e5e30d26e72b2a2067bd89fd23a044ca5273 Mon Sep 17 00:00:00 2001 From: Povilas Brilius Date: Fri, 1 May 2020 19:12:32 +0300 Subject: [PATCH] CSV format practical testing. --- php7/fixtures/texttest_fixture.php | 2 +- php7/src/Item.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/php7/fixtures/texttest_fixture.php b/php7/fixtures/texttest_fixture.php index a5676658..049bc593 100644 --- a/php7/fixtures/texttest_fixture.php +++ b/php7/fixtures/texttest_fixture.php @@ -29,7 +29,7 @@ if (count($argv) > 1) { for ($i = 0; $i < $days; $i++) { echo("-------- day $i --------\n"); - echo("name, sellIn, quality\n"); + echo("name\tsellIn\tquality\n"); foreach ($items as $item) { echo $item . PHP_EOL; } diff --git a/php7/src/Item.php b/php7/src/Item.php index 83d7c3c1..05446651 100644 --- a/php7/src/Item.php +++ b/php7/src/Item.php @@ -49,6 +49,6 @@ final class Item */ public function __toString() { - return "{$this->name}, {$this->sell_in}, {$this->quality}"; + return "{$this->name}\t{$this->sell_in}\t{$this->quality}"; } }