Skip to content

Commit f62b56f

Browse files
authored
Include tests in dev classmap only and fix its namespace (#28)
1 parent 2ad3cd4 commit f62b56f

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ php:
66
- 5.6
77
- 7.0
88
- 7.1
9+
- 7.2
10+
- 7.3
11+
- 7.4
912

1013
before_script:
1114
- wget http://getcomposer.org/composer.phar

composer.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
"m6web/coke": "~1.2"
1818
},
1919
"autoload": {
20-
"psr-0": { "M6Web\\Component\\Statsd\\": "src/" }
20+
"psr-4": {
21+
"M6Web\\Component\\Statsd\\": "src/M6Web/Component/Statsd"
22+
},
23+
"exclude-from-classmap": [
24+
"src/M6Web/Component/Tests/"
25+
]
26+
},
27+
"autoload-dev": {
28+
"psr-4": {
29+
"M6Web\\Component\\Statsd\\Tests\\": "src/M6Web/Component/Tests/"
30+
}
2131
}
2232
}

src/M6Web/Component/Tests/Units/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace M6Web\Component\Statsd\tests\units;
2+
namespace M6Web\Component\Statsd\Tests\Units;
33

44
use
55
\M6Web\Component\Statsd,

src/M6Web/Component/Tests/Units/MessageEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace M6Web\Component\Statsd\tests\units;
2+
namespace M6Web\Component\Statsd\Tests\Units;
33

44
use
55
\M6Web\Component\Statsd,

0 commit comments

Comments
 (0)