Skip to content

Commit 414ee7b

Browse files
committed
Add namespace for all tests
1 parent 48787a4 commit 414ee7b

6 files changed

Lines changed: 14 additions & 2 deletions

File tree

tests/AllTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace React\Tests\Promise\Stream;
4+
35
use React\Promise\Stream;
46
use React\Stream\ThroughStream;
57

tests/BufferTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace React\Tests\Promise\Stream;
4+
35
use Clue\React\Block;
46
use React\EventLoop\Factory;
57
use React\Promise\Stream;

tests/FirstTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace React\Tests\Promise\Stream;
4+
35
use React\Promise\Stream;
46
use React\Stream\ThroughStream;
57

tests/UnwrapReadableTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace React\Tests\Promise\Stream;
4+
35
use Clue\React\Block;
46
use React\EventLoop\Factory;
57
use React\Promise;

tests/UnwrapWritableTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace React\Tests\Promise\Stream;
4+
35
use Clue\React\Block;
46
use React\EventLoop\Factory;
57
use React\Promise;

tests/bootstrap.php

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

3+
namespace React\Tests\Promise\Stream;
4+
35
require_once __DIR__ . '/../vendor/autoload.php';
46

5-
class TestCase extends PHPUnit_Framework_TestCase
7+
class TestCase extends \PHPUnit_Framework_TestCase
68
{
79
protected function expectCallableOnce()
810
{
@@ -51,7 +53,7 @@ protected function expectCallableNever()
5153
*/
5254
protected function createCallableMock()
5355
{
54-
return $this->getMock('CallableStub');
56+
return $this->getMock('React\Tests\Promise\Stream\CallableStub');
5557
}
5658

5759
protected function expectPromiseResolve($promise)

0 commit comments

Comments
 (0)