fdc0e3f113
formatting
2021-03-02 19:34:10 +01:00
a0abe86651
adjust tests to new phpunit
2021-03-02 19:34:10 +01:00
eaf1768cd9
Merge pull request #14 from open-source-contributions/assertion_enhancement
...
Improve PHPUnit assertions
2020-08-27 11:13:14 +00:00
peter279k
14e0915e28
Improve PHPUnit assertions
2020-08-27 17:28:02 +08:00
77d750ccc6
split dummy classes in tests into their own file
v0.7.2
2020-04-08 16:59:33 +02:00
f1d138eddd
fix file name casing
2020-04-08 16:54:30 +02:00
8b563b4226
move tests namespace to autoload-dev
...
fixes #6
2020-02-12 17:55:45 +01:00
85b84ed1f3
test against 7.4
2020-02-12 17:51:55 +01:00
6c91d3e390
add stream wrapper to calculate hash on write
2019-03-12 10:42:36 +01:00
59d8a6ab2a
Merge pull request #11 from rullzer/add_hash_wrapper
...
Added a simple hash wrapper
2019-03-12 10:32:37 +01:00
Roeland Jago Douma
ac08c360e7
fixup! Added a simple hash wrapper
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-03-11 22:54:13 +01:00
Roeland Jago Douma
9d525ccb1e
fixup! Fix new loader
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-03-11 22:49:15 +01:00
Roeland Jago Douma
8a1095e46c
fixup! Fix new loader
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-03-11 22:46:04 +01:00
Roeland Jago Douma
afe2b5753e
Only load protocol if not speified
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-03-11 22:39:52 +01:00
Roeland Jago Douma
064d01292a
Fix new loader
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-03-11 22:39:35 +01:00
Roeland Jago Douma
550e84e1cc
Added a simple hash wrapper
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-03-11 22:31:35 +01:00
a91efa8520
minor cleanup
2019-03-11 17:35:23 +01:00
782e09ec62
some extra type checks
2019-03-11 17:23:14 +01:00
bd77a24550
add scrutinzer config
2019-03-11 17:01:22 +01:00
2c8ae56d02
cleanup context handling for wrappers
2019-03-11 16:52:13 +01:00
3171a535de
autodetect class and protocol
2019-03-11 15:36:15 +01:00
2538e6d05c
bump minimum php version to 5.6 and update test libs
2019-03-11 14:58:42 +01:00
2178a2be0e
use vendor phpunit
2019-03-11 12:45:48 +01:00
4db3ed6c36
Merge pull request #10 from rullzer/master
...
v0.7.1
Pass the strlen to the readCallback as was expected
2019-02-15 13:57:29 +01:00
Roeland Jago Douma
8c45c9a43b
Pass the strlen to the readCallback as was expected
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-02-15 13:52:13 +01:00
e1b5ac12e9
Merge pull request #9 from rullzer/enh/add_preClose_callback
...
v0.7.0
Add a preClose callback
2019-02-14 16:43:18 +01:00
Roeland Jago Douma
3a28b616d5
Add test
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-02-14 16:37:46 +01:00
Roeland Jago Douma
3c98a7556b
Add a preClose callback
...
This is useful in case a callback wants to do something with the stream
right before it gets closed.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-02-14 16:30:54 +01:00
74d0347f39
Merge pull request #8 from rullzer/fix/read_bytes_is_not_requested_bytes
...
Fix read in callbackwrapper
2019-02-14 15:50:23 +01:00
Roeland Jago Douma
0bc7fe4cb1
Fix read in callbackwrapper
...
The number of read bytes is not the same as the number of bytes
requested to read.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-02-14 15:28:47 +01:00
0a78597117
use better method to determine when a stream is a directory stream
0.6.1
2018-04-24 11:07:38 +02:00
851b822ac2
add php 7.1 and 7.2 tests, remove hhvm
0.6.0
2018-01-30 15:09:12 +01:00
03ad0180b4
Add CountWrapper
2018-01-30 15:09:12 +01:00
0ef510af5a
Merge pull request #7 from WyriHaximus/patch-1
...
Markdown styling
2017-07-06 13:39:35 +02:00
Cees-Jan Kiewiet
a87fb58f01
Markdown styling
2017-07-05 17:23:34 +02:00
6bfd2fdbd9
Merge pull request #5 from PVince81/stream_close_scare_away_ghosts
...
0.5.2
Prevent duplicate closeCallback calls in case of GC ghosts
2016-12-02 15:21:23 +01:00
Vincent Petry
668abfee80
Prevent duplicate closeCallback calls in case of GC ghosts
...
Sometimes PHP 7 GC decides to call stream_close again even after the
PHP request has ended, and even if fclose was called before already.
2016-12-02 14:57:57 +01:00
0700f81441
fix a problem with UrlCallBack
0.5.1
2016-10-26 22:16:07 +02:00
5981b1b39c
add PathWrapper to get a virtual path for an existing file
0.5.0
2016-10-26 22:08:04 +02:00
Robin Appelman
d3620e8dc4
Fix retrywrapper when the wrapped stream fails to write or read completely
0.4.1
2016-06-02 16:37:52 +02:00
Robin Appelman
9ca4027464
remove php7 from allowed failures
0.4.0
2016-03-17 13:32:25 +01:00
Robin Appelman
af7f329db7
Add test for retry wrapper
2016-03-17 13:30:32 +01:00
Robin Appelman
96b787d793
Add retry stream wrapper
2016-03-17 13:30:28 +01:00
Robin Appelman
5693b6d771
proper coverals version for older php support
2016-03-16 14:27:16 +01:00
Robin Appelman
c6c38b0a00
No more 5.3 >:(
2015-10-16 16:05:40 +02:00
Robin Appelman
f8cbccabd5
fix 5.3 compatiblity of tests
2015-10-16 16:01:06 +02:00
Robin Appelman
2e2fe951e9
static::class is only since 5.5 :(
2015-10-16 15:51:11 +02:00
Robin Appelman
f47297b76a
Add directory filter
2015-10-16 15:51:11 +02:00
Robin Appelman
91176a6bf5
add directory wrapper base
2015-10-16 15:51:11 +02:00
Robin Appelman
d31237bc40
Add seekable wrapper to make non seekable streams seekable
2015-10-16 15:51:11 +02:00