Skip to content

Commit

Permalink
Increased debug with stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
LionelLaffineur committed Dec 31, 2021
1 parent 7b09b16 commit 4d48556
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Skeleton/Test/Unit.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public static function setUpBeforeClass(): void {
try {
$class::setupBeforeScene();
} catch(\Exception $e) {
printf("Error in %s::setupBeforeScene(): %s\n", $class, $e->getMessage());
printf("Error in %s::setupBeforeScene(): %s\n%s\n", $class, $e->getMessage(), $e->getTraceAsString());
}
}

Expand Down Expand Up @@ -217,7 +217,7 @@ public static function tearDownAfterClass():void {
try {
$class::tearDownAfterScene();
} catch (\Exception $e) {
printf("Error in %s::tearDownAfterScene(): %s\n", $class, $e->getMessage());
printf("Error in %s::tearDownAfterScene(): %s\n%s\n", $class, $e->getMessage(), $e->getTraceAsString());
}

if (self::$my_webdriver !== null) {
Expand Down

0 comments on commit 4d48556

Please sign in to comment.