Lines Matching refs:ee
9 $ee = new EventEmitter();
10 $this->assertInstanceOf('Sabre\\Event\\EventEmitter', $ee);
16 $ee = new EventEmitter();
20 $ee->on('foo', $callback1, 200);
21 $ee->on('foo', $callback2, 100);
23 $this->assertEquals([$callback2, $callback1], $ee->listeners('foo'));
34 $ee = new EventEmitter();
35 $ee->on('foo', function($arg) use (&$argResult) {
42 $ee->emit('foo', ['bar'])
56 $ee = new EventEmitter();
57 $ee->on('foo', function($arg) use (&$argResult) {
63 $ee->on('foo', function($arg) use (&$argResult) {
70 $ee->emit('foo', ['bar'])
84 $ee = new EventEmitter();
85 $ee->on('foo', function($arg) use (&$argResult) {
91 $ee->on('foo', function($arg) use (&$argResult) {
99 $ee->emit('foo', ['bar'])
112 $ee = new EventEmitter();
114 $ee->on('foo', function() use (&$result) {
119 $ee->on('foo', function() use (&$result) {
124 $ee->on('foo', function() use (&$result) {
129 $ee->on('foo', function() use (&$result) {
135 $ee->emit('foo');
150 $ee = new EventEmitter();
152 $ee->on('foo', $callBack);
154 $ee->emit('foo');
159 $ee->removeListener('foo', $callBack)
162 $ee->emit('foo');
177 $ee = new EventEmitter();
179 $ee->on('foo', $callBack);
181 $ee->emit('foo');
185 $this->assertFalse($ee->removeListener('bar', $callBack));
187 $ee->emit('foo');
202 $ee = new EventEmitter();
204 $ee->on('foo', $callBack);
206 $ee->emit('foo');
211 $ee->removeListener('foo', $callBack)
214 $ee->removeListener('foo', $callBack)
217 $ee->emit('foo');
231 $ee = new EventEmitter();
232 $ee->on('foo', $callBack);
234 $ee->emit('foo');
238 $ee->removeAllListeners('foo');
240 $ee->emit('foo');
256 $ee = new EventEmitter();
257 $ee->on('foo', $callBack);
259 $ee->emit('foo');
263 $ee->removeAllListeners();
265 $ee->emit('foo');
280 $ee = new EventEmitter();
281 $ee->once('foo', $callBack);
283 $ee->emit('foo');
284 $ee->emit('foo');
297 $ee = new EventEmitter();
298 $ee->once('foo', function($arg) use (&$argResult) {
304 $ee->once('foo', function($arg) use (&$argResult) {
312 $ee->emit('foo', ['bar'])