Skip to content

Commit 0ea7e6b

Browse files
committed
Merge #28 - Fix composer warnings about PSR-4
2 parents f1db434 + 2f1d87c commit 0ea7e6b

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

.gitattributes

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22
.gitignore export-ignore
33
.github export-ignore
44
phpcs.xml.dist export-ignore
5+
phpunit.xml.dist export-ignore
56
phpstan.neon.dist export-ignore
67
phpstan-baseline.neon export-ignore
78
scripts export-ignore
8-
makefile export-ignore
9+
Makefile export-ignore
910
src/Resources/themes/default/data export-ignore
11+
.editorconfig export-ignore
12+
/examples export-ignore
13+
/locale/Doctum.pot export-ignore
14+
/locale/*.po export-ignore
15+
/tests export-ignore
16+
CHANGELOG.md export-ignore

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@
6161
},
6262
"autoload": {
6363
"psr-4": {
64-
"Doctum\\": "src/",
64+
"Doctum\\": "src/"
65+
}
66+
},
67+
"autoload-dev": {
68+
"psr-4": {
6569
"Doctum\\Tests\\": "tests/"
6670
}
6771
},

phpstan-baseline.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2561,7 +2561,7 @@ parameters:
25612561
path: tests/Parser/NodeVisitorTest.php
25622562

25632563
-
2564-
message: "#^Call to an undefined method Doctum\\\\Tests\\\\Renderer\\\\RendererTest\\:\\:assertFileDoesNotExist\\(\\)\\.$#"
2564+
message: "#^Call to an undefined method Doctum\\\\Tests\\\\Renderer\\\\DiffTest\\:\\:assertFileDoesNotExist\\(\\)\\.$#"
25652565
count: 1
25662566
path: tests/Renderer/DiffTest.php
25672567

tests/Console/CommandHelpTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Doctum\Tests\Command;
3+
namespace Doctum\Tests\Console;
44

55
use Doctum\Console\Command\ParseCommand;
66
use Doctum\Console\Command\RenderCommand;

tests/Console/CommandTest.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 Doctum\Tests\Command;
5+
namespace Doctum\Tests\Console;
66

77
use Doctum\Console\Command\ParseCommand;
88
use Doctum\Console\Command\RenderCommand;

tests/Renderer/DiffTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Doctum\Renderer\Diff;
66
use Doctum\Tests\AbstractTestCase;
77

8-
class RendererTest extends AbstractTestCase
8+
class DiffTest extends AbstractTestCase
99
{
1010

1111
public function testIsPhpClass(): void

0 commit comments

Comments
 (0)