mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-04 00:54:08 +02:00
autodetect class and protocol
This commit is contained in:
parent
2538e6d05c
commit
b58f2f2065
12 changed files with 28 additions and 15 deletions
|
|
@ -21,7 +21,7 @@ class PartialWrapper extends \Icewind\Streams\NullWrapper {
|
|||
'null' => array(
|
||||
'source' => $source)
|
||||
));
|
||||
return self::wrapSource($source, $context, 'partial', '\Icewind\Streams\Tests\PartialWrapper');
|
||||
return self::wrapSource($source, $context);
|
||||
}
|
||||
|
||||
public function stream_read($count) {
|
||||
|
|
@ -49,7 +49,7 @@ class FailWrapper extends \Icewind\Streams\NullWrapper {
|
|||
'null' => array(
|
||||
'source' => $source)
|
||||
));
|
||||
return self::wrapSource($source, $context, 'fail', '\Icewind\Streams\Tests\FailWrapper');
|
||||
return self::wrapSource($source, $context);
|
||||
}
|
||||
|
||||
public function stream_read($count) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue