Skip to content

Commit

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

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

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

0 comments on commit 7b09b16

Please sign in to comment.