Skip to content

Commit 9ddb1b0

Browse files
committed
Updated Logger.
1 parent 578177d commit 9ddb1b0

4 files changed

Lines changed: 9 additions & 27 deletions

File tree

.vortex/tests/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"require-dev": {
1515
"alexskrypnyk/file": "^0.9",
16-
"alexskrypnyk/phpunit-helpers": "^0.8.4",
16+
"alexskrypnyk/phpunit-helpers": "^0.9",
1717
"alexskrypnyk/shellvar": "^1.2",
1818
"czproject/git-php": "^4.4",
1919
"dealerdirect/phpcodesniffer-composer-installer": "^1",

.vortex/tests/composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.vortex/tests/phpunit/Functional/FunctionalTestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ protected function tearDown(): void {
6161
parent::tearDown();
6262

6363
$this->processTearDown();
64+
65+
static::logStepSummary();
6466
}
6567

6668
public function fixtureExportCodebase(string $src, string $dst): void {

.vortex/tests/phpunit/Traits/LoggerTrait.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,4 @@ trait LoggerTrait {
1313

1414
use UpstreamLoggerTrait;
1515

16-
public static function logStepStart(?string $message = NULL): void {
17-
$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2);
18-
$step = $trace[1]['function'] ?? 'unknown';
19-
20-
static::logSection('STEP START | ' . $step, $message, FALSE, 40);
21-
fwrite(STDERR, PHP_EOL);
22-
}
23-
24-
public static function logStepFinish(?string $message = NULL): void {
25-
$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2);
26-
$step = $trace[1]['function'] ?? 'unknown';
27-
28-
static::logSection('STEP DONE | ' . $step, $message, FALSE, 40);
29-
fwrite(STDERR, PHP_EOL);
30-
}
31-
32-
public static function logSubstep(string $message): void {
33-
fwrite(STDERR, ' --> ' . $message . PHP_EOL);
34-
}
35-
3616
}

0 commit comments

Comments
 (0)