Skip to content

Commit 0b899f5

Browse files
committed
Change namespace to AsyncInterop
1 parent e5c4c61 commit 0b899f5

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This package provides a quite extensive phpunit test suite to be used against `L
55
## Usage
66

77
```php
8-
class MyDriverTest extends \Interop\Async\Loop\Test {
8+
class MyDriverTest extends \AsyncInterop\Loop\Test {
99
function getFactory() {
1010
return new MyDriverFactory;
1111
}

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"license": "MIT",
66
"require": {
77
"php": ">=5.5.0",
8-
"async-interop/event-loop": "^0.4|dev-master",
8+
"async-interop/event-loop": "^0.5",
99
"phpunit/phpunit": "^4|^5"
1010
},
1111
"autoload": {
1212
"psr-4": {
13-
"Interop\\Async\\Loop\\": "src"
13+
"AsyncInterop\\Loop\\": "src"
1414
}
1515
}
1616
}

src/Test.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Interop\Async\Loop;
3+
namespace AsyncInterop\Loop;
44

55
if (!defined("SIGUSR1")) {
66
define("SIGUSR1", 30);
@@ -206,7 +206,7 @@ function provideRegistrationArgs()
206206

207207
return $args;
208208
}
209-
209+
210210
/**
211211
* @requires PHP 7
212212
* @dataProvider provideRegistrationArgs
@@ -549,7 +549,7 @@ function testExecutionOrderGuarantees()
549549
$loop->onWritable(STDIN, $f(0, 5));
550550
$writ1 = $loop->onWritable(STDIN, $f(0, 5));
551551
$writ2 = $loop->onWritable(STDIN, $f(0, 5));
552-
552+
553553
$loop->delay($msDelay = 0, $f(0, 5));
554554
$del1 = $loop->delay($msDelay = 0, $f(0, 5));
555555
$del2 = $loop->delay($msDelay = 0, $f(0, 5));
@@ -585,7 +585,7 @@ function testExecutionOrderGuarantees()
585585
$loop->enable($del4);
586586
$loop->onWritable(STDIN, $f(1, 3));
587587
});
588-
588+
589589
$loop->delay($msDelay = 1000, $f(4, 1));
590590
$loop->delay($msDelay = 600, $f(3, 0));
591591
$loop->delay($msDelay = 500, $f(2, 1));
@@ -662,7 +662,7 @@ function testSignalExecutionOrder()
662662
});
663663
}
664664

665-
/** @expectedException \Interop\Async\Loop\InvalidWatcherException */
665+
/** @expectedException \AsyncInterop\Loop\InvalidWatcherException */
666666
function testExceptionOnEnableNonexistentWatcher()
667667
{
668668
try {
@@ -683,7 +683,7 @@ function testSuccessOnCancelNonexistentWatcher()
683683
$this->loop->cancel("nonexistentWatcher");
684684
}
685685

686-
/** @expectedException \Interop\Async\Loop\InvalidWatcherException */
686+
/** @expectedException \AsyncInterop\Loop\InvalidWatcherException */
687687
function testExceptionOnReferenceNonexistentWatcher()
688688
{
689689
try {
@@ -694,7 +694,7 @@ function testExceptionOnReferenceNonexistentWatcher()
694694
}
695695
}
696696

697-
/** @expectedException \Interop\Async\Loop\InvalidWatcherException */
697+
/** @expectedException \AsyncInterop\Loop\InvalidWatcherException */
698698
function testExceptionOnUnreferenceNonexistentWatcher()
699699
{
700700
try {
@@ -705,7 +705,7 @@ function testExceptionOnUnreferenceNonexistentWatcher()
705705
}
706706
}
707707

708-
/** @expectedException \Interop\Async\Loop\InvalidWatcherException */
708+
/** @expectedException \AsyncInterop\Loop\InvalidWatcherException */
709709
function testWatcherInvalidityOnDefer() {
710710
$this->start(function(Driver $loop) {
711711
$loop->defer(function($watcher) use ($loop) {
@@ -714,7 +714,7 @@ function testWatcherInvalidityOnDefer() {
714714
});
715715
}
716716

717-
/** @expectedException \Interop\Async\Loop\InvalidWatcherException */
717+
/** @expectedException \AsyncInterop\Loop\InvalidWatcherException */
718718
function testWatcherInvalidityOnDelay() {
719719
$this->start(function(Driver $loop) {
720720
$loop->delay($msDelay = 0, function($watcher) use ($loop) {

0 commit comments

Comments
 (0)