Skip to content

Commit dedc1c9

Browse files
committed
Fix
1 parent 6273889 commit dedc1c9

11 files changed

+0
-34
lines changed

spec/Handler/LoggingFactorySpec.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use ErrorHeroModule\Handler\Logging;
66
use ErrorHeroModule\Handler\LoggingFactory;
77
use Kahlan\Plugin\Double;
8-
use Laminas\Console\Console;
98
use Laminas\Db\Adapter\AdapterInterface;
109
use Laminas\Log\Logger;
1110
use Laminas\Mail\Message;
@@ -102,7 +101,6 @@
102101

103102
it('instance of Logging on non-console with container does not has "Request" service', function (): void {
104103

105-
Console::overrideIsConsole(false);
106104
$config = $this->config;
107105

108106
$container = Double::instance(['implements' => ContainerInterface::class]);
@@ -116,8 +114,6 @@
116114
$actual = $this->factory($container);
117115
expect($actual)->toBeAnInstanceOf(Logging::class);
118116

119-
Console::overrideIsConsole(true);
120-
121117
});
122118

123119
it('instance of Logging without bring Laminas\Mail\Message and Laminas\Mail\Transport if email-notification-settings is disabled', function (): void {

spec/Integration/IntegrationViaErrorPreviewControllerForCannotConnecttoDBSpec.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@
22

33
namespace ErrorHeroModule\Spec\Integration;
44

5-
use Laminas\Console\Console;
65
use Laminas\Mvc\Application;
76

87
describe('Integration via ErrorPreviewController for Cannot connect to DB', function (): void {
98

109
given('application', function (): Application {
1110

12-
Console::overrideIsConsole(false);
13-
1411
return Application::init([
1512
'modules' => [
1613
'Laminas\Router',

spec/Integration/IntegrationViaErrorPreviewControllerForErrorShownSpec.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@
22

33
namespace ErrorHeroModule\Spec\Integration;
44

5-
use Laminas\Console\Console;
65
use Laminas\Mvc\Application;
76

87
describe('Integration via ErrorPreviewController for error shown', function (): void {
98

109
given('application', function () {
1110

12-
Console::overrideIsConsole(false);
13-
1411
$application = Application::init([
1512
'modules' => [
1613
'Laminas\Router',

spec/Integration/IntegrationViaErrorPreviewControllerForHasCookieSpec.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace ErrorHeroModule\Spec\Integration;
44

5-
use Laminas\Console\Console;
65
use Laminas\Db\Adapter\AdapterInterface;
76
use Laminas\Db\ResultSet\ResultSet;
87
use Laminas\Db\TableGateway\TableGateway;
@@ -12,8 +11,6 @@
1211

1312
given('application', function () {
1413

15-
Console::overrideIsConsole(false);
16-
1714
$application = Application::init([
1815
'modules' => [
1916
'Laminas\Router',

spec/Integration/IntegrationViaErrorPreviewControllerForIdempotentSpec.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace ErrorHeroModule\Spec\Integration;
44

5-
use Laminas\Console\Console;
65
use Laminas\Db\Adapter\AdapterInterface;
76
use Laminas\Db\ResultSet\ResultSet;
87
use Laminas\Db\TableGateway\TableGateway;
@@ -12,8 +11,6 @@
1211

1312
given('application', function (): Application {
1413

15-
Console::overrideIsConsole(false);
16-
1714
return Application::init([
1815
'modules' => [
1916
'Laminas\Router',

spec/Integration/IntegrationViaErrorPreviewControllerForSpecificErrorAndExceptionSpec.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@
22

33
namespace ErrorHeroModule\Spec\Integration;
44

5-
use Laminas\Console\Console;
65
use Laminas\Mvc\Application;
76

87
describe('Integration via ErrorPreviewController', function (): void {
98

109
given('application', function () {
1110

12-
Console::overrideIsConsole(false);
13-
1411
$application = Application::init([
1512
'modules' => [
1613
'Laminas\Router',

spec/Integration/IntegrationViaErrorPreviewControllerForXmlHttpRequestSpec.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace ErrorHeroModule\Spec\Integration;
44

5-
use Laminas\Console\Console;
65
use Laminas\Http\PhpEnvironment\Request;
76
use Laminas\Http\PhpEnvironment\Response;
87
use Laminas\Mvc\Application;
@@ -11,8 +10,6 @@
1110

1211
given('application', function (): Application {
1312

14-
Console::overrideIsConsole(false);
15-
1613
return Application::init([
1714
'modules' => [
1815
'Laminas\Router',

spec/Integration/IntegrationViaErrorPreviewControllerForXmlHttpRequestWithNonJsonMessageSpec.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace ErrorHeroModule\Spec\Integration;
44

5-
use Laminas\Console\Console;
65
use Laminas\Http\PhpEnvironment\Request;
76
use Laminas\Http\PhpEnvironment\Response;
87
use Laminas\Mvc\Application;
@@ -11,8 +10,6 @@
1110

1211
given('application', function (): Application {
1312

14-
Console::overrideIsConsole(false);
15-
1613
return Application::init([
1714
'modules' => [
1815
'Laminas\Router',

spec/Integration/IntegrationViaErrorPreviewControllerSpec.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace ErrorHeroModule\Spec\Integration;
44

5-
use Laminas\Console\Console;
65
use Laminas\Db\Adapter\AdapterInterface;
76
use Laminas\Db\ResultSet\ResultSet;
87
use Laminas\Db\TableGateway\TableGateway;
@@ -12,8 +11,6 @@
1211

1312
given('application', function () {
1413

15-
Console::overrideIsConsole(false);
16-
1714
$application = Application::init([
1815
'modules' => [
1916
'Laminas\Router',

spec/Integration/IntegrationViaErrorPreviewControllerWithEnableSendMailSpec.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace ErrorHeroModule\Spec\Integration;
44

55
use Kahlan\Plugin\Quit;
6-
use Laminas\Console\Console;
76
use Laminas\Db\Adapter\AdapterInterface;
87
use Laminas\Db\ResultSet\ResultSet;
98
use Laminas\Db\TableGateway\TableGateway;
@@ -13,8 +12,6 @@
1312

1413
given('application', function () {
1514

16-
Console::overrideIsConsole(false);
17-
1815
$application = Application::init([
1916
'modules' => [
2017
'Laminas\Router',

0 commit comments

Comments
 (0)