summaryrefslogtreecommitdiffstats
path: root/tests/lib/hooks/basicemitter.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-05-09 22:52:44 +0200
committerRobin Appelman <icewind@owncloud.com>2013-05-09 22:52:44 +0200
commit990f23c0249682043c9e0dd42f33c478e2aa9131 (patch)
tree0037ef5a0154b0b093a7b059b74156c662163f90 /tests/lib/hooks/basicemitter.php
parentb8a421a86db09c7ed106c2f9aee15aa337761e4a (diff)
downloadnextcloud-server-990f23c0249682043c9e0dd42f33c478e2aa9131.tar.gz
nextcloud-server-990f23c0249682043c9e0dd42f33c478e2aa9131.zip
fix typo
Diffstat (limited to 'tests/lib/hooks/basicemitter.php')
-rw-r--r--tests/lib/hooks/basicemitter.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/lib/hooks/basicemitter.php b/tests/lib/hooks/basicemitter.php
index 53de996c5c9..f48dc53c563 100644
--- a/tests/lib/hooks/basicemitter.php
+++ b/tests/lib/hooks/basicemitter.php
@@ -153,7 +153,7 @@ class BasicEmitter extends \PHPUnit_Framework_TestCase {
throw new EmittedException;
};
$this->emitter->listen('Test', 'test', $listener);
- $this->emitter->remoteListener('Test', 'test', $listener);
+ $this->emitter->removeListener('Test', 'test', $listener);
$this->emitter->emitEvent('Test', 'test');
}
@@ -166,7 +166,7 @@ class BasicEmitter extends \PHPUnit_Framework_TestCase {
};
$this->emitter->listen('Test', 'test', $listener1);
$this->emitter->listen('Test', 'test', $listener2);
- $this->emitter->remoteListener('Test', 'test');
+ $this->emitter->removeListener('Test', 'test');
$this->emitter->emitEvent('Test', 'test');
}
@@ -176,7 +176,7 @@ class BasicEmitter extends \PHPUnit_Framework_TestCase {
};
$this->emitter->listen('Test', 'test', $listener);
$this->emitter->listen('Test', 'foo', $listener);
- $this->emitter->remoteListener('Test', null, $listener);
+ $this->emitter->removeListener('Test', null, $listener);
$this->emitter->emitEvent('Test', 'test');
$this->emitter->emitEvent('Test', 'foo');
}
@@ -187,7 +187,7 @@ class BasicEmitter extends \PHPUnit_Framework_TestCase {
};
$this->emitter->listen('Test', 'test', $listener);
$this->emitter->listen('Bar', 'test', $listener);
- $this->emitter->remoteListener(null, 'test', $listener);
+ $this->emitter->removeListener(null, 'test', $listener);
$this->emitter->emitEvent('Test', 'test');
$this->emitter->emitEvent('Bar', 'test');
}
@@ -199,7 +199,7 @@ class BasicEmitter extends \PHPUnit_Framework_TestCase {
$this->emitter->listen('Test', 'test', $listener);
$this->emitter->listen('Test', 'foo', $listener);
$this->emitter->listen('Bar', 'foo', $listener);
- $this->emitter->remoteListener(null, null, $listener);
+ $this->emitter->removeListener(null, null, $listener);
$this->emitter->emitEvent('Test', 'test');
$this->emitter->emitEvent('Test', 'foo');
$this->emitter->emitEvent('Bar', 'foo');
@@ -217,7 +217,7 @@ class BasicEmitter extends \PHPUnit_Framework_TestCase {
};
$this->emitter->listen('Test', 'test', $listener1);
$this->emitter->listen('Test', 'test', $listener2);
- $this->emitter->remoteListener('Test', 'test', $listener1);
+ $this->emitter->removeListener('Test', 'test', $listener1);
$this->emitter->emitEvent('Test', 'test');
}
@@ -230,7 +230,7 @@ class BasicEmitter extends \PHPUnit_Framework_TestCase {
};
$this->emitter->listen('Test', 'test', $listener);
$this->emitter->listen('Test', 'foo', $listener);
- $this->emitter->remoteListener('Test', 'foo', $listener);
+ $this->emitter->removeListener('Test', 'foo', $listener);
$this->emitter->emitEvent('Test', 'test');
}
@@ -243,7 +243,7 @@ class BasicEmitter extends \PHPUnit_Framework_TestCase {
};
$this->emitter->listen('Test', 'test', $listener);
$this->emitter->listen('Bar', 'test', $listener);
- $this->emitter->remoteListener('Bar', 'test', $listener);
+ $this->emitter->removeListener('Bar', 'test', $listener);
$this->emitter->emitEvent('Test', 'test');
}
@@ -255,7 +255,7 @@ class BasicEmitter extends \PHPUnit_Framework_TestCase {
throw new EmittedException;
};
$this->emitter->listen('Test', 'test', $listener);
- $this->emitter->remoteListener('Bar', 'test', $listener);
+ $this->emitter->removeListener('Bar', 'test', $listener);
$this->emitter->emitEvent('Test', 'test');
}
}