Navigation Menu

Skip to content

Commit

Permalink
Move tests into the same namespace as code
Browse files Browse the repository at this point in the history
  • Loading branch information
igorw committed Nov 18, 2012
1 parent 0ac61ce commit a7d89de
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
@@ -1,8 +1,6 @@
<?php

namespace React\Tests\ZMQ;

use React\ZMQ\Buffer;
namespace React\ZMQ;

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

namespace React\Tests\ZMQ;

use React\ZMQ\Context;
namespace React\ZMQ;

class ContextTest extends \PHPUnit_Framework_TestCase
{
/** @test */
public function shouldWrapContext()
public function itShouldWrapARealZMQContext()
{
$loop = $this->getMock('React\EventLoop\LoopInterface');

Expand All @@ -22,7 +20,7 @@ public function shouldWrapContext()
}

/** @test */
public function shouldWrapSockets()
public function getSocketShouldWrapSockets()
{
$loop = $this->getMock('React\EventLoop\LoopInterface');

Expand All @@ -33,7 +31,7 @@ public function shouldWrapSockets()
}

/** @test */
public function shouldAddReadListener()
public function getSocketShouldAddReadListener()
{
$loop = $this->getMock('React\EventLoop\LoopInterface');
$loop
Expand All @@ -45,7 +43,7 @@ public function shouldAddReadListener()
}

/** @test */
public function shouldNotAddReadListenerForNonReadableSocketType()
public function getSocketShouldNotAddReadListenerForNonReadableSocketType()
{
$loop = $this->getMock('React\EventLoop\LoopInterface');
$loop
Expand Down
@@ -1,9 +1,8 @@
<?php

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

use React\EventLoop\StreamSelectLoop;
use React\ZMQ\Context;

class IntegrationTest extends \PHPUnit_Framework_TestCase
{
Expand Down
@@ -1,13 +1,11 @@
<?php

namespace React\Tests\ZMQ;

use React\ZMQ\SocketWrapper;
namespace React\ZMQ;

class SocketWrapperTest extends \PHPUnit_Framework_TestCase
{
/** @test */
public function shouldWrapSocket()
public function itShouldWrapARealZMQSocket()
{
$loop = $this->getMock('React\EventLoop\LoopInterface');

Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
@@ -1,4 +1,4 @@
<?php

$loader = require __DIR__.'/../vendor/autoload.php';
$loader->add('React\Tests', __DIR__);
$loader->add('React\ZMQ', __DIR__);

0 comments on commit a7d89de

Please sign in to comment.