Skip to content

Commit a06858c

Browse files
committed
Clean up test suite
1 parent de83ac0 commit a06858c

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"psr-4": { "Clue\\React\\HttpProxy\\": "src/" }
1515
},
1616
"autoload-dev": {
17-
"psr-4": { "Tests\\Clue\\React\\HttpProxy\\": "tests/" }
17+
"psr-4": { "Clue\\Tests\\React\\HttpProxy\\": "tests/" }
1818
},
1919
"require": {
2020
"php": ">=5.3",

tests/AbstractTestCase.php

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Tests\Clue\React\HttpProxy;
3+
namespace Clue\Tests\React\HttpProxy;
44

5-
use PHPUnit_Framework_TestCase;
5+
use PHPUnit\Framework\TestCase;
66

7-
abstract class AbstractTestCase extends PHPUnit_Framework_TestCase
7+
abstract class AbstractTestCase extends \PHPUnit\Framework\TestCase
88
{
99
protected function expectCallableNever()
1010
{
@@ -52,14 +52,7 @@ protected function expectCallableOnceWithException($class, $message, $code)
5252
*/
5353
protected function createCallableMock()
5454
{
55-
return $this->getMockBuilder('Tests\\Clue\\React\\HttpProxy\\CallableStub')->getMock();
56-
}
57-
}
58-
59-
class CallableStub
60-
{
61-
public function __invoke()
62-
{
55+
return $this->getMockBuilder('stdClass')->setMethods(array('__invoke'))->getMock();
6356
}
6457
}
6558

tests/FunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests\Clue\React\HttpProxy;
3+
namespace Clue\Tests\React\HttpProxy;
44

55
use React\EventLoop\Factory;
66
use Clue\React\HttpProxy\ProxyConnector;

tests/ProxyConnectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tests\Clue\React\HttpProxy;
3+
namespace Clue\Tests\React\HttpProxy;
44

55
use Clue\React\HttpProxy\ProxyConnector;
66
use React\Promise\Promise;

0 commit comments

Comments
 (0)