мелкие правки
This commit is contained in:
1 parent
19fe218c8d
commit
bd4ad625c2
5 files changed
+32
-9
No files matched your search
@@ -23,6 +23,18 @@ mb_internal_encoding('UTF-8');
|
||||
|
||||
$passed = 0;
|
||||
$failed = 0;
|
||||
$skipped = 0;
|
||||
|
||||
/**
|
||||
* Пропустить тест, которому не хватает окружения (драйвера, расширения).
|
||||
*/
|
||||
function skip(string $name, string $reason): void
|
||||
{
|
||||
global $skipped;
|
||||
|
||||
$skipped++;
|
||||
echo 'skip ' . $name . ' — ' . $reason . PHP_EOL;
|
||||
}
|
||||
|
||||
function test(string $name, callable $fn): void
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user