Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Merge buzz into http-client #148

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/01-google.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use React\HttpClient\Client;
use React\HttpClient\Response;
use React\HttpClient\Internal\Client;
use React\HttpClient\Internal\Response;

require __DIR__ . '/../vendor/autoload.php';

Expand Down
4 changes: 2 additions & 2 deletions examples/02-post-json.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use React\HttpClient\Client;
use React\HttpClient\Response;
use React\HttpClient\Internal\Client;
use React\HttpClient\Internal\Response;

require __DIR__ . '/../vendor/autoload.php';

Expand Down
4 changes: 2 additions & 2 deletions examples/03-streaming.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use React\HttpClient\Client;
use React\HttpClient\Response;
use React\HttpClient\Internal\Client;
use React\HttpClient\Internal\Response;

require __DIR__ . '/../vendor/autoload.php';

Expand Down
4 changes: 2 additions & 2 deletions examples/11-unix-domain-sockets.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use React\HttpClient\Client;
use React\HttpClient\Response;
use React\HttpClient\Internal\Client;
use React\HttpClient\Internal\Response;
use React\Socket\FixedUriConnector;
use React\Socket\UnixConnector;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace React\HttpClient;
namespace React\HttpClient\Internal;

use Evenement\EventEmitter;
use Exception;
Expand Down
2 changes: 1 addition & 1 deletion src/Client.php → src/Internal/Client.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace React\HttpClient;
namespace React\HttpClient\Internal;

use React\EventLoop\LoopInterface;
use React\Socket\ConnectorInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Request.php → src/Internal/Request.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace React\HttpClient;
namespace React\HttpClient\Internal;

use Evenement\EventEmitter;
use React\Promise;
Expand Down
2 changes: 1 addition & 1 deletion src/RequestData.php → src/Internal/RequestData.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace React\HttpClient;
namespace React\HttpClient\Internal;

class RequestData
{
Expand Down
2 changes: 1 addition & 1 deletion src/Response.php → src/Internal/Response.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace React\HttpClient;
namespace React\HttpClient\Internal;

use Evenement\EventEmitter;
use React\Stream\ReadableStreamInterface;
Expand Down
2 changes: 1 addition & 1 deletion tests/CallableStub.php → tests/Internal/CallableStub.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace React\Tests\HttpClient;
namespace React\Tests\HttpClient\Internal;

class CallableStub
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace React\Tests\HttpClient;
namespace React\Tests\HttpClient\Internal;

use Exception;
use React\HttpClient\ChunkedStreamDecoder;
use React\HttpClient\Internal\ChunkedStreamDecoder;
use React\Stream\ThroughStream;

class DecodeChunkedStreamTest extends TestCase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace React\Tests\HttpClient;
namespace React\Tests\HttpClient\Internal;

use Clue\React\Block;
use React\EventLoop\Factory;
use React\HttpClient\Client;
use React\HttpClient\Response;
use React\HttpClient\Internal\Client;
use React\HttpClient\Internal\Response;
use React\Promise\Deferred;
use React\Promise\Stream;
use React\Socket\Server;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace React\Tests\HttpClient;
namespace React\Tests\HttpClient\Internal;

use React\HttpClient\RequestData;
use React\HttpClient\Internal\RequestData;

class RequestDataTest extends TestCase
{
Expand Down
6 changes: 3 additions & 3 deletions tests/RequestTest.php → tests/Internal/RequestTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace React\Tests\HttpClient;
namespace React\Tests\HttpClient\Internal;

use React\HttpClient\Request;
use React\HttpClient\RequestData;
use React\HttpClient\Internal\Request;
use React\HttpClient\Internal\RequestData;
use React\Stream\Stream;
use React\Stream\DuplexResourceStream;
use React\Promise\RejectedPromise;
Expand Down
4 changes: 2 additions & 2 deletions tests/ResponseTest.php → tests/Internal/ResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace React\Tests\HttpClient;
namespace React\Tests\HttpClient\Internal;

use React\HttpClient\Response;
use React\HttpClient\Internal\Response;
use React\Stream\ThroughStream;

class ResponseTest extends TestCase
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php → tests/Internal/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace React\Tests\HttpClient;
namespace React\Tests\HttpClient\Internal;

use PHPUnit\Framework\TestCase as BaseTestCase;

Expand Down Expand Up @@ -50,7 +50,7 @@ protected function expectCallableNever()
protected function createCallableMock()
{
return $this
->getMockBuilder('React\Tests\HttpClient\CallableStub')
->getMockBuilder('React\Tests\HttpClient\Internal\CallableStub')
->getMock();
}
}