appwrite/tests/extensions/TestHook.php

18 lines
311 B
PHP
Raw Normal View History

2021-03-21 14:26:05 +00:00
<?php
2022-05-23 14:54:50 +00:00
2021-03-21 14:26:05 +00:00
namespace Appwrite\Tests;
use PHPUnit\Runner\AfterTestHook;
class TestHook implements AfterTestHook
{
public function executeAfterTest(string $test, float $time): void
{
2022-05-23 14:54:50 +00:00
printf(
2022-08-03 04:17:49 +00:00
"%s ended in %s milliseconds\n",
2022-05-23 14:54:50 +00:00
$test,
2022-08-03 04:17:49 +00:00
$time * 1000
2021-03-21 14:26:05 +00:00
);
}
2022-05-23 14:54:50 +00:00
}