Skip to content

Commit 473094e

Browse files
committed
Added FAIL/PASS prefixes
1 parent 4da4817 commit 473094e

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

tests/Autoload.test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
if(!class_exists('phpFastCache\CacheManager'))
1515
{
16-
echo "Autoload failed to find the CacheManager\n";
16+
echo "[FAIL] Autoload failed to find the CacheManager\n";
1717
$status = 1;
1818
}
19-
echo "Autoload successfully found the CacheManager\n";
19+
echo "[PASS] Autoload successfully found the CacheManager\n";
2020

2121
exit($status);

tests/NewCacheInstance.test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
if(!is_object($driverInstance) || !($driverInstance instanceof DriverInterface))
2222
{
23-
echo 'CacheManager::getInstance() returned wrong data:' . gettype($driverInstance) . "\n";
23+
echo '[FAIL] CacheManager::getInstance() returned wrong data:' . gettype($driverInstance) . "\n";
2424
$status = 1;
2525
}
26-
echo "CacheManager::getInstance() returned expected object that implements DriverInterface\n";
26+
echo "[PASS] CacheManager::getInstance() returned expected object that implements DriverInterface\n";
2727

2828
exit($status);

tests/SyntaxChecker.test.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,14 @@ function read_dir($dir, $ext = null)
3737
$output = '';
3838

3939
exec('php -lf "' . $file . '"', $output, $status);
40-
echo(implode("\n", $output) . "\n");
40+
4141
if ($status != 0) {
4242
$exit = $status;
43+
echo '[FAIL]';
44+
}else{
45+
echo '[PASS]';
4346
}
47+
echo ' ' . implode("\n", $output);
48+
echo "\n";
4449
}
4550
exit($exit);

0 commit comments

Comments
 (0)