Lines Matching refs:called
95 $called = 0;
98 'pump' => function ($size) use (&$called) {
99 $called++;
105 $this->assertEquals(0, $called);
107 $this->assertEquals(1, $called);
109 $this->assertEquals(2, $called);
114 $called = 0;
117 'drain' => function (BufferStream $b) use (&$called, $buffer) {
119 $called++;
125 $this->assertEquals(0, $called);
133 $this->assertEquals(0, $called);
138 $this->assertEquals(1, $called);