Skip to content

Commit

Permalink
workerman-gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Oct 27, 2023
1 parent 53ad4f3 commit 0bef935
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 22 deletions.
23 changes: 7 additions & 16 deletions src/Components/workerman-gateway/tests/phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
<?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="workerman">
<directory>unit/AppServer/Tests/WebSocket/Workerman</directory>
Expand All @@ -17,12 +11,9 @@
<directory>unit/AppServer/Tests/WebSocket/Swoole</directory>
</testsuite>
</testsuites>
<coverage>
<source>
<include>
<directory suffix=".php">../src</directory>
</include>
<report>
<clover outputFile="clover.xml"/>
</report>
</coverage>
</phpunit>
</source>
</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Imi\WorkermanGateway\Test\AppServer\Tests\WebSocket;

abstract class BaseTest extends \Imi\WorkermanGateway\Test\BaseTest
abstract class BaseTestCase extends \Imi\WorkermanGateway\Test\BaseTestCase
{
/**
* WebSocket 服务请求主机.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

namespace Imi\WorkermanGateway\Test\AppServer\Tests\WebSocket\Workerman;

use Imi\WorkermanGateway\Test\AppServer\Tests\WebSocket\BaseTest;
use Imi\WorkermanGateway\Test\AppServer\Tests\WebSocket\BaseTestCase;
use Wrench\Client;
use Yurun\Util\HttpRequest;

/**
* @testdox Imi\WorkermanGateway\Server\Server
*/
class ServerUtilTest extends BaseTest
class ServerUtilTest extends BaseTestCase
{
public function testGetServer(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Imi\WorkermanGateway\Test\AppServer\Tests\WebSocket\Workerman;

use Imi\WorkermanGateway\Test\AppServer\Tests\WebSocket\BaseTest;
use Imi\WorkermanGateway\Test\AppServer\Tests\WebSocket\BaseTestCase;
use Wrench\Client;

/**
* @testdox WebSocket
*/
class WSTest extends BaseTest
class WSTest extends BaseTestCase
{
/**
* @testdox test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

namespace Imi\WorkermanGateway\Test;

abstract class BaseTest extends \Imi\Test\BaseTest
abstract class BaseTestCase extends \Imi\Test\BaseTest
{
}

0 comments on commit 0bef935

Please sign in to comment.