diff --git a/app/modules/web/Bootstrap.php b/app/modules/web/Bootstrap.php
index 666a2021..e7e03ad5 100644
--- a/app/modules/web/Bootstrap.php
+++ b/app/modules/web/Bootstrap.php
@@ -130,5 +130,4 @@ final class Bootstrap extends BootstrapBase
return $response;
};
}
-
}
diff --git a/lib/SP/Core/Bootstrap/BootstrapBase.php b/lib/SP/Core/Bootstrap/BootstrapBase.php
index 15c4758b..51292856 100644
--- a/lib/SP/Core/Bootstrap/BootstrapBase.php
+++ b/lib/SP/Core/Bootstrap/BootstrapBase.php
@@ -94,6 +94,8 @@ abstract class BootstrapBase implements BootstrapInterface
if (defined('TEST_ROOT')) {
$router->response()->body(__($err_msg) . PHP_EOL . $err->getTraceAsString());
+
+ throw $err;
} else {
$router->response()->body(__($err_msg));
}
diff --git a/tests/SP/Modules/Web/Controllers/AccessManager/IndexControllerTest.php b/tests/SP/Modules/Web/Controllers/AccessManager/IndexControllerTest.php
index 7028bd57..a86caf14 100644
--- a/tests/SP/Modules/Web/Controllers/AccessManager/IndexControllerTest.php
+++ b/tests/SP/Modules/Web/Controllers/AccessManager/IndexControllerTest.php
@@ -62,8 +62,10 @@ class IndexControllerTest extends IntegrationTestCase
'//div[contains(@id, \'tabs-\')]//form'
)->extract(['id']);
- $this->assertNotEmpty($output);
- $this->assertCount(5, $filter);
+ assert(!empty($output));
+ assert(count($filter) === 5);
+
+ $this->assertTrue(true);
});
$container = $this->buildContainer(
diff --git a/tests/SP/Modules/Web/Controllers/Account/CopyControllerTest.php b/tests/SP/Modules/Web/Controllers/Account/CopyControllerTest.php
index bac496a4..45407251 100644
--- a/tests/SP/Modules/Web/Controllers/Account/CopyControllerTest.php
+++ b/tests/SP/Modules/Web/Controllers/Account/CopyControllerTest.php
@@ -62,8 +62,10 @@ class CopyControllerTest extends IntegrationTestCase
'//div[@class="data-container"]//form[@name="frmaccount"]|//div[@class="item-actions"]//button'
)->extract(['id']);
- $this->assertNotEmpty($output);
- $this->assertCount(3, $filter);
+ assert(!empty($output));
+ assert(count($filter) === 3);
+
+ $this->assertTrue(true);
});
$container = $this->buildContainer(
diff --git a/tests/SP/Modules/Web/Controllers/Account/CreateControllerTest.php b/tests/SP/Modules/Web/Controllers/Account/CreateControllerTest.php
index d8868756..d25dadfb 100644
--- a/tests/SP/Modules/Web/Controllers/Account/CreateControllerTest.php
+++ b/tests/SP/Modules/Web/Controllers/Account/CreateControllerTest.php
@@ -61,8 +61,10 @@ class CreateControllerTest extends IntegrationTestCase
'//div[@class="data-container"]//form[@name="frmaccount" and @data-action-route="account/saveCreate"]|//div[@class="item-actions"]//button'
)->extract(['id']);
- $this->assertNotEmpty($output);
- $this->assertCount(3, $filter);
+ assert(!empty($output));
+ assert(count($filter) === 3);
+
+ $this->assertTrue(true);
}
);
diff --git a/tests/SP/Modules/Web/Controllers/Account/DeleteControllerTest.php b/tests/SP/Modules/Web/Controllers/Account/DeleteControllerTest.php
index 7f8da930..7f41d627 100644
--- a/tests/SP/Modules/Web/Controllers/Account/DeleteControllerTest.php
+++ b/tests/SP/Modules/Web/Controllers/Account/DeleteControllerTest.php
@@ -65,8 +65,10 @@ class DeleteControllerTest extends IntegrationTestCase
'//div[@class="data-container"]//form[@name="frmaccount" and @data-action-route="account/saveDelete"]|//div[@class="item-actions"]//button'
)->extract(['id']);
- $this->assertNotEmpty($output);
- $this->assertCount(2, $filter);
+ assert(!empty($output));
+ assert(count($filter) === 2);
+
+ $this->assertTrue(true);
}
);
diff --git a/tests/SP/Modules/Web/Controllers/Account/EditControllerTest.php b/tests/SP/Modules/Web/Controllers/Account/EditControllerTest.php
index c71fb9a1..7d167455 100644
--- a/tests/SP/Modules/Web/Controllers/Account/EditControllerTest.php
+++ b/tests/SP/Modules/Web/Controllers/Account/EditControllerTest.php
@@ -64,8 +64,10 @@ class EditControllerTest extends IntegrationTestCase
'//div[@class="data-container"]//form[@name="frmaccount" and @data-action-route="account/saveEdit"]|//div[@class="item-actions"]//button'
)->extract(['id']);
- $this->assertNotEmpty($output);
- $this->assertCount(3, $filter);
+ assert(!empty($output));
+ assert(count($filter) === 3);
+
+ $this->assertTrue(true);
}
);
diff --git a/tests/phpunit.xml b/tests/phpunit.xml
index d8737e8b..7d8aff79 100644
--- a/tests/phpunit.xml
+++ b/tests/phpunit.xml
@@ -67,4 +67,7 @@
../lib/SP/Domain/Config/Adapters/ConfigData.php
+
+
+