Lines Matching refs:s2
39 $s2 = Stream::factory('');
40 Utils::copyToStream($s1, $s2);
41 $this->assertEquals('foobaz', (string) $s2);
42 $s2 = Stream::factory('');
44 Utils::copyToStream($s1, $s2, 3);
45 $this->assertEquals('foo', (string) $s2);
46 Utils::copyToStream($s1, $s2, 3);
47 $this->assertEquals('foobaz', (string) $s2);
53 $s2 = Stream::factory('');
54 $s2 = FnStream::decorate($s2, ['write' => function () { return 0; }]);
55 Utils::copyToStream($s1, $s2);
56 $this->assertEquals('', (string) $s2);
62 $s2 = Stream::factory('');
63 $s2 = FnStream::decorate($s2, ['write' => function () { return 0; }]);
64 Utils::copyToStream($s1, $s2, 10);
65 $this->assertEquals('', (string) $s2);
72 $s2 = Stream::factory('');
73 Utils::copyToStream($s1, $s2, 10);
74 $this->assertEquals('', (string) $s2);