Skip to content

Commit 85faa33

Browse files
committed
Changed organization
1 parent f0f3d52 commit 85faa33

8 files changed

+22
-17
lines changed

.circleci/config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ jobs:
77
working_directory: ~/project
88
steps:
99
- checkout
10+
11+
- run:
12+
name: Install PHPUnit
13+
command: |
14+
composer require phpunit/phpunit:7.5.17 --no-update
15+
1016
- run:
1117
name: Run tests
1218
command: |
13-
composer install -n --prefer-dist --no-suggest
19+
composer update -n --prefer-dist --no-suggest
1420
php vendor/bin/phpunit

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Set of simple PHP functions turned non-blocking on too of
44
[ReactPHP](https://reactphp.org/)
55

6-
[![CircleCI](https://circleci.com/gh/mmoreram/reactphp-functions.svg?style=svg)](https://circleci.com/gh/mmoreram/reactphp-functions)
6+
[![CircleCI](https://circleci.com/gh/driftphp/reactphp-functions.svg?style=svg)](https://circleci.com/gh/driftphp/reactphp-functions)
77

88
**Table of Contents**
99
- [Quickstart example](#quickstart-example)
@@ -44,7 +44,7 @@ This lightweight library has some small methods with the exact behavior than
4444
their sibling methods in regular and blocking PHP.
4545

4646
```php
47-
use Mmoreram\React;
47+
use Drift\React;
4848

4949
React\sleep(...);
5050
```
@@ -79,7 +79,7 @@ elapsed, continue from the same point
7979
the loop continue doing cycles. Block the program execution after n seconds, and
8080
after this time is elapsed, continue from the same point. This is a blocking
8181
feature.
82-
- `\Mmoreram\React\sleep($time, $loop)` - Don't block neither the PHP thread nor
82+
- `\Drift\React\sleep($time, $loop)` - Don't block neither the PHP thread nor
8383
the program execution. This method returns a Promise that will be resolved after
8484
n seconds. This is a non-blocking feature.
8585

@@ -123,7 +123,7 @@ This project follows [SemVer](https://semver.org/).
123123
This will install the latest supported version:
124124

125125
```bash
126-
$ composer require mmoreram/react-functions:dev-master
126+
$ composer require driftphp/react-functions:dev-master
127127
```
128128

129129
This library requires PHP7.

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "mmoreram/react-functions",
2+
"name": "drift/react-functions",
33
"description": "Lightweight library that provides regular PHP methods is a non-blocking implementation.",
44
"keywords": ["blocking", "await", "sleep", "Event Loop", "Promise", "ReactPHP", "async"],
5-
"homepage": "https://github.com/mmoreram/reactphp-functions",
5+
"homepage": "https://github.com/driftphp/reactphp-functions",
66
"license": "MIT",
77
"autoload": {
88
"files": [ "src/functions_include.php" ]
@@ -15,7 +15,6 @@
1515
"react/promise-timer": "^1.5"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "^7.0",
1918
"clue/block-react": "^1.3"
2019
}
2120
}

src/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
namespace Mmoreram\React;
4+
namespace Drift\React;
55

66
use React\ChildProcess\Process;
77
use React\EventLoop\LoopInterface;

src/functions_include.php

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

33

4-
namespace Mmoreram\React;
4+
namespace Drift\React;
55

6-
if (!function_exists('Mmoreram\\React\\sleep')) {
6+
if (!function_exists('Drift\\React\\sleep')) {
77
require __DIR__ . '/functions.php';
88
}

tests/MimeContentTypeTest.php

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

33

4-
namespace Mmoreram\React\Tests;
4+
namespace Drift\React\Tests;
55

66
use PHPUnit\Framework\TestCase;
77
use React\EventLoop\Factory;
8-
use Mmoreram\React;
8+
use Drift\React;
99
use Clue\React\Block;
1010
use RuntimeException;
1111
use Exception;

tests/SleepTest.php

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

33

4-
namespace Mmoreram\React\Tests;
4+
namespace Drift\React\Tests;
55

66
use PHPUnit\Framework\TestCase;
77
use React\EventLoop\Factory;
88
use React\Promise\FulfilledPromise;
9-
use Mmoreram\React;
9+
use Drift\React;
1010
use Clue\React\Block;
1111

1212
/**

tests/UsleepTest.php

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

33

4-
namespace Mmoreram\React\Tests;
4+
namespace Drift\React\Tests;
55

66
use PHPUnit\Framework\TestCase;
77
use React\EventLoop\Factory;
88
use React\Promise\FulfilledPromise;
9-
use Mmoreram\React;
9+
use Drift\React;
1010
use Clue\React\Block;
1111

1212
/**

0 commit comments

Comments
 (0)