Skip to content

Commit 39031e4

Browse files
committed
Clean up test suite
1 parent db88a8b commit 39031e4

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy