|
@@ -25,6 +25,7 @@ class TestCommand extends TestCase
|
|
|
Base::run_util();
|
|
|
}
|
|
|
|
|
|
+ //docker-compose run -d phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestCommand::testExportCard)( .*)?$/" --test-suffix TestCommand.php /var/www/html/test
|
|
|
public function testExportCard()
|
|
|
{
|
|
|
$filename = BASE_DATA_PATH . "/log/cards.csv";
|
|
@@ -42,6 +43,7 @@ class TestCommand extends TestCase
|
|
|
foreach ($items as $item) {
|
|
|
$card_no = $item['card_no'];
|
|
|
fputcsv($fcards, [$card_no]);
|
|
|
+ $start = $card_no;
|
|
|
}
|
|
|
}
|
|
|
|