Lines Matching refs:result
111 $result = [];
114 $ee->on('foo', function() use (&$result) {
116 $result[] = 'a';
119 $ee->on('foo', function() use (&$result) {
121 $result[] = 'b';
124 $ee->on('foo', function() use (&$result) {
126 $result[] = 'c';
129 $ee->on('foo', function() use (&$result) {
131 $result[] = 'd';
136 $this->assertEquals(['b', 'd', 'a', 'c'], $result);
142 $result = false;
144 $callBack = function() use (&$result) {
146 $result = true;
155 $this->assertTrue($result);
156 $result = false;
163 $this->assertFalse($result);
169 $result = false;
171 $callBack = function() use (&$result) {
173 $result = true;
182 $this->assertTrue($result);
183 $result = false;
188 $this->assertTrue($result);
194 $result = false;
196 $callBack = function() use (&$result) {
198 $result = true;
207 $this->assertTrue($result);
208 $result = false;
218 $this->assertFalse($result);
224 $result = false;
225 $callBack = function() use (&$result) {
227 $result = true;
235 $this->assertTrue($result);
236 $result = false;
241 $this->assertFalse($result);
247 $result = false;
249 $callBack = function() use (&$result) {
251 $result = true;
260 $this->assertTrue($result);
261 $result = false;
266 $this->assertFalse($result);
272 $result = 0;
274 $callBack = function() use (&$result) {
276 $result++;
286 $this->assertEquals(1, $result);