From 6a4401f88891503e14e0bb11e5a2ec1f48ae3d30 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Wed, 30 Dec 2020 00:24:09 +0100 Subject: [PATCH] Test driver modified --- PatchCollector_test.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PatchCollector_test.php b/PatchCollector_test.php index 0e72119..d6b5960 100644 --- a/PatchCollector_test.php +++ b/PatchCollector_test.php @@ -16,7 +16,7 @@ foreach (new \DirectoryIterator(__DIR__ . '/modules_test') as $file) { $db = new Database(__DIR__ . '/db.json'); echo 'Time: ' . date('c', $db->time()) . PHP_EOL; -if ($db->load()) { +//if ($db->load()) { foreach ($list as $patch) { $oldVer = $db->find($patch->id())->getVersion(); if ($patch->check()) { @@ -33,7 +33,8 @@ if ($db->load()) { else fwrite(STDERR, $patch . ': CHECK FAILED!' . PHP_EOL); } - $db->save(); -} +// $db->save(); + var_dump($db); +//} ?>