-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest_scripts.php
More file actions
42 lines (34 loc) · 1.1 KB
/
test_scripts.php
File metadata and controls
42 lines (34 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
echo "Testing AbraFlexi Digest Scripts...\n\n";
$scripts = [
'src/abraflexi-daydigest.php',
'src/abraflexi-weekdigest.php',
'src/abraflexi-monthdigest.php',
'src/abraflexi-yeardigest.php',
'src/abraflexi-alltimedigest.php'
];
foreach ($scripts as $script) {
echo "Testing: $script\n";
// Test if file exists and is readable
if (!file_exists($script)) {
echo " ❌ File not found\n";
continue;
}
if (!is_readable($script)) {
echo " ❌ File not readable\n";
continue;
}
// Check if file contains our new TableTag usage
$content = file_get_contents($script);
if (strpos($content, 'TableTag') !== false) {
echo " ✅ Contains TableTag usage\n";
} else if (strpos($content, '\\AbraFlexi\\Digest\\Table') !== false) {
echo " ⚠️ Still contains deprecated Table usage\n";
} else {
echo " ℹ️ No table usage detected\n";
}
// Basic syntax check already passed, so just confirm
echo " ✅ Syntax OK\n";
echo "\n";
}
echo "All tests completed!\n";