Skip to content

Commit

Permalink
test: Fix a Bug in Test Case
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Jun 26, 2024
1 parent a930fde commit 64fcb9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/webfiori/tests/error/SampleHandler1.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct() {
$this->setName('H1');
}
public function handle() {
define('SampleHandler1', 'Yes');
!defined('SampleHandler1') ? define('SampleHandler1', 'Yes') : '';
}

public function isActive(): bool {
Expand Down
2 changes: 1 addition & 1 deletion tests/webfiori/tests/error/SampleHandler2.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct() {
$this->setName('H2');
}
public function handle() {
define('SampleHandler2', 'Yes');
!defined('SampleHandler2') ? define('SampleHandler2', 'Yes') : '';
}

public function isActive(): bool {
Expand Down
2 changes: 1 addition & 1 deletion tests/webfiori/tests/error/SampleHandler3.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct() {
$this->setName('H3');
}
public function handle() {
define('SampleHandler3', 'Yes');
!defined('SampleHandler3') ? define('SampleHandler3', 'Yes') : '';
}

public function isActive(): bool {
Expand Down

0 comments on commit 64fcb9f

Please sign in to comment.