Reorganize Tests
This commit is contained in:
parent
5ba8771e93
commit
79d23e37a4
|
|
@ -4,10 +4,12 @@
|
||||||
/.php_cs* export-ignore
|
/.php_cs* export-ignore
|
||||||
/.travis.yml export-ignore
|
/.travis.yml export-ignore
|
||||||
/composer.lock export-ignore
|
/composer.lock export-ignore
|
||||||
|
/coverage export-ignore
|
||||||
/docker export-ignore
|
/docker export-ignore
|
||||||
/docker-compose.yml export-ignore
|
/docker-compose* export-ignore
|
||||||
/docs export-ignore
|
/docs export-ignore
|
||||||
/test export-ignore
|
/tests export-ignore
|
||||||
/phpunit.xml.dist export-ignore
|
/phpunit.xml* export-ignore
|
||||||
/psalm.xnk export-ignore
|
/psalm.xml export-ignore
|
||||||
/public export-ignore
|
/public export-ignore
|
||||||
|
/vendor export-ignore
|
||||||
|
|
@ -26,4 +26,5 @@ notes
|
||||||
|
|
||||||
# Local overrides
|
# Local overrides
|
||||||
.env
|
.env
|
||||||
docker-compose.override.yml
|
docker-compose.override.yml
|
||||||
|
phpunit.xml
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
$finder = PhpCsFixer\Finder::create()
|
$finder = PhpCsFixer\Finder::create()
|
||||||
->files()
|
->files()
|
||||||
->in(__DIR__ . '/src')
|
->in(__DIR__ . '/src')
|
||||||
->in(__DIR__ . '/test');
|
->in(__DIR__ . '/tests');
|
||||||
|
|
||||||
return PhpCsFixer\Config::create()
|
return PhpCsFixer\Config::create()
|
||||||
->setFinder($finder)
|
->setFinder($finder)
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,8 @@
|
||||||
},
|
},
|
||||||
"autoload-dev": {
|
"autoload-dev": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"WellRESTed\\": "test/tests/unit/",
|
"WellRESTed\\": "tests",
|
||||||
"WellRESTed\\Test\\": "test/src/",
|
"WellRESTed\\Test\\": "tests"
|
||||||
"WellRESTed\\Test\\Integration\\": "test/tests/integration/"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,11 @@ server {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Generated Code Coverage Report
|
||||||
|
location /coverage {
|
||||||
|
alias /usr/local/src/wellrested/coverage;
|
||||||
|
}
|
||||||
|
|
||||||
# Generated Documentation
|
# Generated Documentation
|
||||||
location /docs {
|
location /docs {
|
||||||
alias /usr/local/src/wellrested/docs/build/html;
|
alias /usr/local/src/wellrested/docs/build/html;
|
||||||
|
|
|
||||||
|
|
@ -14,15 +14,12 @@
|
||||||
<directory suffix=".php">./src</directory>
|
<directory suffix=".php">./src</directory>
|
||||||
</include>
|
</include>
|
||||||
<report>
|
<report>
|
||||||
<html outputDirectory="./public/coverage"/>
|
<html outputDirectory="./coverage"/>
|
||||||
</report>
|
</report>
|
||||||
</coverage>
|
</coverage>
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="unit">
|
<testsuite name="unit">
|
||||||
<directory>./test/tests/unit</directory>
|
<directory>./tests</directory>
|
||||||
</testsuite>
|
|
||||||
<testsuite name="integration">
|
|
||||||
<directory>./test/tests/integration</directory>
|
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
<logging/>
|
<logging/>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace WellRESTed\Test\Integration;
|
namespace WellRESTed\Routing;
|
||||||
|
|
||||||
use Psr\Http\Message\ResponseInterface;
|
use Psr\Http\Message\ResponseInterface;
|
||||||
use Psr\Http\Message\ServerRequestInterface;
|
use Psr\Http\Message\ServerRequestInterface;
|
||||||
|
|
@ -13,7 +13,10 @@ use WellRESTed\Server;
|
||||||
use WellRESTed\Test\TestCase;
|
use WellRESTed\Test\TestCase;
|
||||||
use WellRESTed\Transmission\TransmitterInterface;
|
use WellRESTed\Transmission\TransmitterInterface;
|
||||||
|
|
||||||
/** @coversNothing */
|
/**
|
||||||
|
* Integration test for Routing components
|
||||||
|
* @coversNothing
|
||||||
|
*/
|
||||||
class RoutingTest extends TestCase
|
class RoutingTest extends TestCase
|
||||||
{
|
{
|
||||||
/** @var Server */
|
/** @var Server */
|
||||||
Loading…
Reference in New Issue