Skip to content

Commit 7df2ac6

Browse files
committed
Fix http server travis
1 parent b0c3c6e commit 7df2ac6

10 files changed

Lines changed: 15 additions & 7 deletions

test/unit/Concern/HttpResponseAssertTrait.php renamed to test/testing/Concern/HttpResponseAssertTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php declare(strict_types=1);
22

33

4-
namespace SwoftTest\Http\Server\Unit\Concern;
4+
namespace SwoftTest\Http\Server\Testing\Concern;
55

66
use PHPUnit\Framework\Assert;
77
use function strpos;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php declare(strict_types=1);
22

33

4-
namespace SwoftTest\Http\Server\Unit;
4+
namespace SwoftTest\Http\Server\Testing;
55

66
use ReflectionException;
77
use RuntimeException;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php declare(strict_types=1);
22

33

4-
namespace SwoftTest\Http\Server\Unit;
4+
namespace SwoftTest\Http\Server\Testing;
55

66
use ReflectionException;
77
use Swoft\Bean\Annotation\Mapping\Bean;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php declare(strict_types=1);
22

33

4-
namespace SwoftTest\Http\Server\Unit;
4+
namespace SwoftTest\Http\Server\Testing;
55

66
use ReflectionException;
77
use Swoft\Bean\Annotation\Mapping\Bean;
88
use Swoft\Bean\Concern\PrototypeTrait;
99
use Swoft\Bean\Exception\ContainerException;
10-
use SwoftTest\Http\Server\Unit\Concern\HttpResponseAssertTrait;
10+
use SwoftTest\Http\Server\Testing\Concern\HttpResponseAssertTrait;
1111
use Swoole\Http\Response;
1212

1313
/**

test/unit/MdTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
namespace SwoftTest\Http\Server\Unit;
5+
use SwoftTest\Http\Server\Testing\MockRequest;
56

67

78
use Swoft\Http\Message\ContentType;

test/unit/RequestTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Swoft\Http\Message\ContentType;
77
use Swoft\Http\Message\Request;
88
use Swoft\Stdlib\Helper\JsonHelper;
9+
use SwoftTest\Http\Server\Testing\MockRequest;
910

1011
/**
1112
* Class RequestTest

test/unit/RestTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use Swoft\Http\Message\ContentType;
88
use Swoft\Stdlib\Helper\JsonHelper;
9+
use SwoftTest\Http\Server\Testing\MockRequest;
910

1011
/**
1112
* Class RestTest

test/unit/RouteTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use Swoft\Http\Message\ContentType;
88
use Swoft\Stdlib\Helper\JsonHelper;
9+
use SwoftTest\Http\Server\Testing\MockRequest;
910

1011
/**
1112
* Class RouteTest

test/unit/TestCase.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
namespace SwoftTest\Http\Server\Unit;
55

66

7+
use ReflectionException;
78
use Swoft\Bean\BeanFactory;
9+
use Swoft\Bean\Exception\ContainerException;
10+
use SwoftTest\Http\Server\Testing\MockHttpServer;
811

912
/**
1013
* Class TestCase
@@ -19,8 +22,8 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
1922
protected $mockServer;
2023

2124
/**
22-
* @throws \ReflectionException
23-
* @throws \Swoft\Bean\Exception\ContainerException
25+
* @throws ReflectionException
26+
* @throws ContainerException
2427
*/
2528
public function setUp()
2629
{

test/unit/ValidatorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
namespace SwoftTest\Http\Server\Unit;
55

66
use Swoft\Bean\Exception\ContainerException;
7+
use SwoftTest\Http\Server\Testing\MockRequest;
78

89
/**
910
* Class ValidatorTest

0 commit comments

Comments
 (0)