Lines Matching refs:drain
37 'drain' => function() {}
39 $drain = new ReflectionProperty(AsyncReadStream::class, 'drain');
40 $drain->setAccessible(true);
41 $this->assertNull($drain->getValue($a));
54 $this->expectErrorMessage('drain must be callable');
55 new AsyncReadStream(new BufferStream(), ['drain' => true]);
63 'drain' => function () {},
68 $drain = new ReflectionProperty(AsyncReadStream::class, 'drain');
69 $drain->setAccessible(true);
74 $this->assertTrue(is_callable($drain->getValue($a)));
117 'drain' => function (BufferStream $b) use (&$called, $buffer) {