disable truncate test for php 5.3

This commit is contained in:
Robin Appelman 2014-08-03 16:19:03 +02:00
commit 62fd1514db

View file

@ -85,6 +85,9 @@ class NativeStream extends \PHPUnit_Framework_TestCase {
} }
public function testTruncate() { public function testTruncate() {
if (version_compare(phpversion(), '5.4.0', '<')) {
$this->markTestSkipped('php <5.4 doesn\'t support truncate for stream wrappers');
}
$fh = $this->share->write($this->root . '/foobar'); $fh = $this->share->write($this->root . '/foobar');
fwrite($fh, 'foobar'); fwrite($fh, 'foobar');
ftruncate($fh, 3); ftruncate($fh, 3);