Skip to content

Commit

Permalink
fpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Oct 26, 2023
1 parent fdb18df commit c016846
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Imi\Fpm\Test\Web\Tests;
namespace Imi\Fpm\Test\HttpServer\Tests;

use function Imi\env;

abstract class BaseTest extends \Imi\Fpm\Test\BaseTest
abstract class BaseTestCase extends \Imi\Fpm\Test\BaseTest
{
/**
* 请求主机.
Expand Down
4 changes: 2 additions & 2 deletions src/Components/fpm/tests/HttpServer/Tests/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Imi\Fpm\Test\Web\Tests;
namespace Imi\Fpm\Test\HttpServer\Tests;

use Imi\Util\Http\Consts\MediaType;
use Imi\Util\Uri;
Expand All @@ -12,7 +12,7 @@
/**
* @testdox HttpRequest
*/
class RequestTest extends BaseTest
class RequestTest extends BaseTestCase
{
/**
* route.
Expand Down
4 changes: 2 additions & 2 deletions src/Components/fpm/tests/HttpServer/Tests/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Imi\Fpm\Test\Web\Tests;
namespace Imi\Fpm\Test\HttpServer\Tests;

use Imi\Util\Http\Consts\MediaType;
use Imi\Util\Http\Consts\StatusCode;
Expand All @@ -11,7 +11,7 @@
/**
* @testdox HttpResponse
*/
class ResponseTest extends BaseTest
class ResponseTest extends BaseTestCase
{
/**
* Middleware.
Expand Down
23 changes: 7 additions & 16 deletions src/Components/fpm/tests/phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="./bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
bootstrap="./bootstrap.php"
colors="true">
<testsuites>
<testsuite name="HttpServer">
<directory>HttpServer/Tests</directory>
</testsuite>
</testsuites>
<coverage>
<source>
<include>
<directory suffix=".php">../src</directory>
</include>
<report>
<clover outputFile="clover.xml"/>
</report>
</coverage>
</phpunit>
</source>
</phpunit>

0 comments on commit c016846

Please sign in to comment.