Skip to content

Commit a350061

Browse files
committed
Move tests out of src
1 parent c8857dd commit a350061

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ registered health checkers. If everything was OK, just return the report that wa
9999
100100
### Register the checker
101101
By implementing the `HealthCheckInterface` you can register your own health check.
102-
This interface is tagged with `openconext.monitor.health_check` so you don't have to do it yourself.
102+
This interface is tagged automatically, so you don't have to do it yourself.
103103

104104
## Overriding a default HealthCheck
105105
To run a custom query with the DoctrineConnectionHealthCheck you will need to override it in your own project.

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@
2929
},
3030
"autoload-dev": {
3131
"psr-4": {
32-
"App\\Tests\\": "src/Tests/"
32+
"App\\Tests\\": "tests/"
3333
}
3434
},
3535
"scripts": {
3636
"tests": {
37-
"docheader": "vendor/bin/docheader check src/",
38-
"phpcs": "vendor/bin/phpcs src --report=full --standard=phpcs.xml --extensions=php --warning-severity=0",
39-
"phpcpd": "vendor/bin/phpcpd src --exclude=src/Tests/*",
37+
"docheader": "vendor/bin/docheader check src/ tests/",
38+
"phpcs": "vendor/bin/phpcs src tests --report=full --standard=phpcs.xml --extensions=php --warning-severity=0",
39+
"phpcpd": "vendor/bin/phpcpd src",
4040
"phpunit": "vendor/bin/phpunit --coverage-text",
41-
"phpmd": "vendor/bin/phpmd src text phpmd.xml --exclude 'src/Tests/*'"
41+
"phpmd": "vendor/bin/phpmd src text phpmd.xml"
4242
},
4343
"post-update-cmd": [
4444
"@tests"

phpunit.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
2020
<server name="SYMFONY_PHPUNIT_VERSION" value="9" />
2121

22-
<server name="KERNEL_CLASS" value="App\Tests\App\AppKernel"/>
22+
<server name="KERNEL_CLASS" value="App\Tests\App\AppKernel"/>z
2323
<server name="KERNEL_DIR" value="./Tests/App"/>
2424
<ini name="zend.enable_gc" value="0"/>
2525
</php>
@@ -30,12 +30,12 @@
3030
</include>
3131
<exclude>
3232
<directory>.github</directory>
33-
<directory>src/Tests</directory>
33+
<directory>tests</directory>
3434
</exclude>
3535
</coverage>
3636
<testsuites>
3737
<testsuite name="Test Suite">
38-
<directory>src/Tests</directory>
38+
<directory>tests</directory>
3939
</testsuite>
4040
</testsuites>
4141
<listeners>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)