Skip to content

Commit

Permalink
Rename namespace {Zmq => ZMQ}
Browse files Browse the repository at this point in the history
  • Loading branch information
igorw committed Jul 8, 2012
1 parent 938d8e5 commit 5373aef
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -25,7 +25,7 @@ Here is an example of a push socket:

$loop = React\EventLoop\Factory::create();

$context = new React\Zmq\Context($loop);
$context = new React\ZMQ\Context($loop);

$push = $context->getSocket(ZMQ::SOCKET_PUSH);
$push->connect('tcp://127.0.0.1:5555');
Expand All @@ -47,7 +47,7 @@ And the pull socket that goes with it:

$loop = React\EventLoop\Factory::create();

$context = new React\Zmq\Context($loop);
$context = new React\ZMQ\Context($loop);

$pull = $context->getSocket(ZMQ::SOCKET_PULL);
$pull->bind('tcp://127.0.0.1:5555');
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -10,6 +10,6 @@
"react/event-loop": "dev-master"
},
"autoload": {
"psr-0": { "React\\Zmq": "src" }
"psr-0": { "React\\ZMQ": "src" }
}
}
2 changes: 1 addition & 1 deletion examples/pubsub.php
Expand Up @@ -4,7 +4,7 @@

$loop = React\EventLoop\Factory::create();

$context = new React\Zmq\Context($loop);
$context = new React\ZMQ\Context($loop);

$sub = $context->getSocket(ZMQ::SOCKET_SUB);
$sub->bind('tcp://127.0.0.1:5555');
Expand Down
2 changes: 1 addition & 1 deletion examples/pull.php
Expand Up @@ -4,7 +4,7 @@

$loop = React\EventLoop\Factory::create();

$context = new React\Zmq\Context($loop);
$context = new React\ZMQ\Context($loop);

$pull = $context->getSocket(ZMQ::SOCKET_PULL);
$pull->bind('tcp://127.0.0.1:5555');
Expand Down
2 changes: 1 addition & 1 deletion examples/push.php
Expand Up @@ -4,7 +4,7 @@

$loop = React\EventLoop\Factory::create();

$context = new React\Zmq\Context($loop);
$context = new React\ZMQ\Context($loop);

$push = $context->getSocket(ZMQ::SOCKET_PUSH);
$push->connect('tcp://127.0.0.1:5555');
Expand Down
2 changes: 1 addition & 1 deletion src/React/Zmq/Buffer.php → src/React/ZMQ/Buffer.php
@@ -1,6 +1,6 @@
<?php

namespace React\Zmq;
namespace React\ZMQ;

use Evenement\EventEmitter;
use React\EventLoop\LoopInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/React/Zmq/Context.php → src/React/ZMQ/Context.php
@@ -1,6 +1,6 @@
<?php

namespace React\Zmq;
namespace React\ZMQ;

use React\EventLoop\LoopInterface;

Expand Down
@@ -1,6 +1,6 @@
<?php

namespace React\Zmq;
namespace React\ZMQ;

use Evenement\EventEmitter;
use React\EventLoop\LoopInterface;
Expand Down
@@ -1,8 +1,8 @@
<?php

namespace React\Tests\Zmq;
namespace React\Tests\ZMQ;

use React\Zmq\Buffer;
use React\ZMQ\Buffer;

class BufferTest extends \PHPUnit_Framework_TestCase
{
Expand Down
@@ -1,8 +1,8 @@
<?php

namespace React\Tests\Zmq;
namespace React\Tests\ZMQ;

use React\Zmq\Context;
use React\ZMQ\Context;

class ContextTest extends \PHPUnit_Framework_TestCase
{
Expand All @@ -27,7 +27,7 @@ public function testShouldWrapSockets()
$context = new Context($loop);
$socket = $context->getSocket(\ZMQ::SOCKET_PULL);

$this->assertInstanceOf('React\Zmq\SocketWrapper', $socket);
$this->assertInstanceOf('React\ZMQ\SocketWrapper', $socket);
}

public function testShouldAddReadListener()
Expand Down
@@ -1,8 +1,8 @@
<?php

namespace React\Tests\Zmq;
namespace React\Tests\ZMQ;

use React\Zmq\SocketWrapper;
use React\ZMQ\SocketWrapper;

class SocketWrapperTest extends \PHPUnit_Framework_TestCase
{
Expand Down

0 comments on commit 5373aef

Please sign in to comment.