File tree Expand file tree Collapse file tree 10 files changed +30
-30
lines changed Expand file tree Collapse file tree 10 files changed +30
-30
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"require" : {
3
- "go-swoole /base-server" :" ~0.1" ,
4
- "go-swoole /console-plugin" :" ~0.1"
3
+ "esd /base-server" :" ~0.1" ,
4
+ "esd /console-plugin" :" ~0.1"
5
5
},
6
6
"autoload" : {
7
7
"psr-4" : {
8
- "GoSwoole \\ Plugins\\ " : " src/"
8
+ "ESD \\ Plugins\\ " : " src/"
9
9
}
10
10
},
11
11
"authors" : [
15
15
"homepage" : " https://github.com/tmtbe"
16
16
}
17
17
],
18
- "name" : " go-swoole /phpunit-plugin" ,
18
+ "name" : " esd /phpunit-plugin" ,
19
19
"type" : " library" ,
20
20
"keywords" : [" server" , " swoole" ],
21
21
"description" : " phpunit-plugin" ,
Original file line number Diff line number Diff line change 6
6
* Time: 14:51
7
7
*/
8
8
9
- use GoSwoole \BaseServer \ExampleClass \Server \DefaultServer ;
10
- use GoSwoole \Plugins \PHPUnit \PHPUnitPlugin ;
9
+ use ESD \BaseServer \ExampleClass \Server \DefaultServer ;
10
+ use ESD \Plugins \PHPUnit \PHPUnitPlugin ;
11
11
12
12
require __DIR__ . '/../vendor/autoload.php ' ;
13
13
Original file line number Diff line number Diff line change 1
- goswoole :
1
+ esd :
2
2
port :
3
3
http :
4
4
name : http
Original file line number Diff line number Diff line change 1
- goswoole :
1
+ esd :
2
2
server :
3
- name : goswoole
3
+ name : esd
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- use GoSwoole \Plugins \PHPUnit \GoTestCase ;
3
+ use ESD \Plugins \PHPUnit \GoTestCase ;
4
4
5
5
/**
6
6
* Created by PhpStorm.
Original file line number Diff line number Diff line change 6
6
* Time: 15:33
7
7
*/
8
8
9
- namespace GoSwoole \Plugins \PHPUnit ;
9
+ namespace ESD \Plugins \PHPUnit ;
10
10
11
11
12
- use GoSwoole \BaseServer \Server \Server ;
12
+ use ESD \BaseServer \Server \Server ;
13
13
use PHPUnit \Framework \TestCase ;
14
14
15
15
class GoTestCase extends TestCase
Original file line number Diff line number Diff line change 6
6
* Time: 15:04
7
7
*/
8
8
9
- namespace GoSwoole \Plugins \PHPUnit ;
9
+ namespace ESD \Plugins \PHPUnit ;
10
10
11
- use GoSwoole \BaseServer \Server \Context ;
12
- use GoSwoole \BaseServer \Server \PlugIn \AbstractPlugin ;
13
- use GoSwoole \BaseServer \Server \PlugIn \PluginInterfaceManager ;
14
- use GoSwoole \Plugins \Console \ConsoleConfig ;
15
- use GoSwoole \Plugins \Console \ConsolePlugin ;
11
+ use ESD \BaseServer \Server \Context ;
12
+ use ESD \BaseServer \Server \PlugIn \AbstractPlugin ;
13
+ use ESD \BaseServer \Server \PlugIn \PluginInterfaceManager ;
14
+ use ESD \Plugins \Console \ConsoleConfig ;
15
+ use ESD \Plugins \Console \ConsolePlugin ;
16
16
17
17
class PHPUnitPlugin extends AbstractPlugin
18
18
{
@@ -37,7 +37,7 @@ public function getName(): string
37
37
/**
38
38
* @param PluginInterfaceManager $pluginInterfaceManager
39
39
* @return mixed|void
40
- * @throws \GoSwoole \BaseServer\Exception
40
+ * @throws \ESD \BaseServer\Exception
41
41
* @throws \ReflectionException
42
42
*/
43
43
public function onAdded (PluginInterfaceManager $ pluginInterfaceManager )
Original file line number Diff line number Diff line change 6
6
* Time: 15:09
7
7
*/
8
8
9
- namespace GoSwoole \Plugins \PHPUnit ;
9
+ namespace ESD \Plugins \PHPUnit ;
10
10
11
11
12
- use GoSwoole \BaseServer \Server \Message \Message ;
13
- use GoSwoole \BaseServer \Server \Process ;
14
- use GoSwoole \BaseServer \Server \Server ;
12
+ use ESD \BaseServer \Server \Message \Message ;
13
+ use ESD \BaseServer \Server \Process ;
14
+ use ESD \BaseServer \Server \Server ;
15
15
use PHPUnit \TextUI \Command ;
16
16
17
17
class PHPUnitProcess extends Process
Original file line number Diff line number Diff line change 6
6
* Time: 上午10:59
7
7
*/
8
8
9
- namespace GoSwoole \Plugins \PHPUnit ;
9
+ namespace ESD \Plugins \PHPUnit ;
10
10
11
- use GoSwoole \BaseServer \Server \Context ;
12
- use GoSwoole \BaseServer \Server \Server ;
13
- use GoSwoole \Plugins \Console \ConsolePlugin ;
11
+ use ESD \BaseServer \Server \Context ;
12
+ use ESD \BaseServer \Server \Server ;
13
+ use ESD \Plugins \Console \ConsolePlugin ;
14
14
use Symfony \Component \Console \Command \Command ;
15
15
use Symfony \Component \Console \Input \InputArgument ;
16
16
use Symfony \Component \Console \Input \InputInterface ;
@@ -43,7 +43,7 @@ protected function configure()
43
43
* @param InputInterface $input
44
44
* @param OutputInterface $output
45
45
* @return int|null
46
- * @throws \GoSwoole \BaseServer\Server\Exception\ConfigException
46
+ * @throws \ESD \BaseServer\Server\Exception\ConfigException
47
47
* @throws \ReflectionException
48
48
*/
49
49
protected function execute (InputInterface $ input , OutputInterface $ output )
Original file line number Diff line number Diff line change 6
6
* Time: 15:07
7
7
*/
8
8
9
- namespace GoSwoole \Plugins \PHPUnit ;
9
+ namespace ESD \Plugins \PHPUnit ;
10
10
11
11
12
- use GoSwoole \BaseServer \Server \Server ;
12
+ use ESD \BaseServer \Server \Server ;
13
13
14
14
class UnitServer
15
15
{
You can’t perform that action at this time.
0 commit comments