mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 08:34:09 +02:00
php <5.4 doesn't support truncate for stream wrappers
This commit is contained in:
parent
dc3701e16f
commit
e1a270f184
1 changed files with 3 additions and 0 deletions
|
|
@ -75,6 +75,9 @@ abstract class Wrapper extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
public function testTruncate() {
|
||||
if (version_compare(phpversion(), '5.4.0', '<')) {
|
||||
$this->markTestSkipped('php <5.4 doesn\'t support truncate for stream wrappers');
|
||||
}
|
||||
$source = fopen('php://temp', 'r+');
|
||||
fwrite($source, 'foobar');
|
||||
rewind($source);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue