mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
disable truncate test for php 5.3
This commit is contained in:
parent
dbc6aa4a9e
commit
62fd1514db
1 changed files with 3 additions and 0 deletions
|
|
@ -85,6 +85,9 @@ class NativeStream 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');
|
||||
}
|
||||
$fh = $this->share->write($this->root . '/foobar');
|
||||
fwrite($fh, 'foobar');
|
||||
ftruncate($fh, 3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue