Skip to content

Commit

Permalink
Merge branch 'enix-app-colored-cli-in-table' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Apr 21, 2020
2 parents 0cf609e + 549f3f7 commit 05e1734
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion system/CLI/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ public static function table(array $tbody, array $thead = [])
}
}

fwrite(STDOUT, $table);
static::write($table);
}

//--------------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions tests/system/CLI/CLITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public function tableProvider()
[],
"+---+-----+\n" .
"| 1 | bar |\n" .
"+---+-----+\n",
"+---+-----+\n\n",
],
[
$one_row,
Expand All @@ -376,7 +376,7 @@ public function tableProvider()
"| ID | Title |\n" .
"+----+-------+\n" .
"| 1 | bar |\n" .
"+----+-------+\n",
"+----+-------+\n\n",
],
[
$many_rows,
Expand All @@ -385,7 +385,7 @@ public function tableProvider()
"| 1 | bar |\n" .
"| 2 | bar * 2 |\n" .
"| 3 | bar + bar + bar |\n" .
"+---+-----------------+\n",
"+---+-----------------+\n\n",
],
[
$many_rows,
Expand All @@ -396,7 +396,7 @@ public function tableProvider()
"| 1 | bar |\n" .
"| 2 | bar * 2 |\n" .
"| 3 | bar + bar + bar |\n" .
"+----+-----------------+\n",
"+----+-----------------+\n\n",
],
];
}
Expand Down

0 comments on commit 05e1734

Please sign in to comment.