1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Adjust date fix-up after column changes

This commit is contained in:
J. King 2022-06-05 18:17:26 -04:00
parent 07bac4ead3
commit e9c6ddcfdf

View file

@ -428,14 +428,13 @@ abstract class AbstractTest extends \PHPUnit\Framework\TestCase {
public function compareExpectations(Driver $drv, array $expected): void {
foreach ($expected as $table => $info) {
// serialize the rows of the expected output
$types = array_values($info['columns']);
$exp = [];
$dates = [];
foreach ($info['rows'] as $r) {
$row = [];
foreach ($r as $c => $v) {
// store any date values for later comparison
if ($types[$c] === "datetime") {
if (self::COL_DEFS[$table][$info['columns'][$c]] === "datetime") {
$dates[] = $v;
}
// serialize to CSV, null being represented by no value