mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-17 15:31:27 +00:00
CSV format practical testing.
This commit is contained in:
parent
4a05355b9c
commit
e5f4e5e30d
@ -29,7 +29,7 @@ if (count($argv) > 1) {
|
|||||||
|
|
||||||
for ($i = 0; $i < $days; $i++) {
|
for ($i = 0; $i < $days; $i++) {
|
||||||
echo("-------- day $i --------\n");
|
echo("-------- day $i --------\n");
|
||||||
echo("name, sellIn, quality\n");
|
echo("name\tsellIn\tquality\n");
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
echo $item . PHP_EOL;
|
echo $item . PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,6 +49,6 @@ final class Item
|
|||||||
*/
|
*/
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
return "{$this->name}, {$this->sell_in}, {$this->quality}";
|
return "{$this->name}\t{$this->sell_in}\t{$this->quality}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user