php <5.4 doesn't support truncate for stream wrappers

This commit is contained in:
Robin Appelman 2014-07-23 23:09:46 +02:00
commit e1a270f184

View file

@ -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);