Skip to content

Commit c9e2929

Browse files
committed
Better namespacing
1 parent d9d7794 commit c9e2929

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
},
2727
"autoload": {
2828
"psr-4": {
29-
"Levacic\\Exceptions\\": "src"
29+
"Levacic\\Monolog\\": "src"
3030
}
3131
},
3232
"autoload-dev": {
3333
"psr-4": {
34-
"Tests\\Levacic\\Exceptions\\": "tests"
34+
"Tests\\Levacic\\Monolog\\": "tests"
3535
}
3636
},
3737
"require-dev": {

src/ExceptionWithContextProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Levacic\Exceptions;
5+
namespace Levacic\Monolog;
66

77
use Levacic\Exceptions\ExceptionWithContext;
88
use Monolog\Processor\ProcessorInterface;

tests/DummyExceptionWithContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Tests\Levacic\Exceptions;
5+
namespace Tests\Levacic\Monolog;
66

77
use Levacic\Exceptions\ExceptionWithContext;
88
use RuntimeException;

tests/ExceptionWithContextProcessorTest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
declare(strict_types=1);
44

5-
namespace Tests\Levacic\Exceptions;
5+
namespace Tests\Levacic\Monolog;
66

7-
use Levacic\Exceptions\ExceptionWithContextProcessor;
7+
use Levacic\Monolog\ExceptionWithContextProcessor;
88
use PHPUnit\Framework\TestCase;
99
use RuntimeException;
10+
use Tests\Levacic\Monolog\DummyExceptionWithContext;
1011

1112
class ExceptionWithContextProcessorTest extends TestCase
1213
{
@@ -115,7 +116,7 @@ public function testProcessesRecordsWithExceptionsWithContext(): void
115116
'extra' => [
116117
'exception_chain_with_context' => [
117118
[
118-
'exception' => 'Tests\\Levacic\\Exceptions\\DummyExceptionWithContext',
119+
'exception' => 'Tests\\Levacic\\Monolog\\DummyExceptionWithContext',
119120
'context' => [
120121
'foo' => 'bar',
121122
],
@@ -152,7 +153,7 @@ public function testDoesntOverwriteUserProvidedContext(): void
152153
'extra' => [
153154
'exception_chain_with_context' => [
154155
[
155-
'exception' => 'Tests\\Levacic\\Exceptions\\DummyExceptionWithContext',
156+
'exception' => 'Tests\\Levacic\\Monolog\\DummyExceptionWithContext',
156157
'context' => [
157158
'foo' => 'bar',
158159
],
@@ -192,7 +193,7 @@ public function testProcessesRecordsWithChainedExceptionsWithContext(): void
192193
'context' => null,
193194
],
194195
[
195-
'exception' => 'Tests\\Levacic\\Exceptions\\DummyExceptionWithContext',
196+
'exception' => 'Tests\\Levacic\\Monolog\\DummyExceptionWithContext',
196197
'context' => [
197198
'foo' => 'bar',
198199
],

0 commit comments

Comments
 (0)