Sfoglia il codice sorgente

adding test for binary file to test \OC_Helper::streamCopy()

tags/v6.0.0beta3
Thomas Mueller 10 anni fa
parent
commit
665b7571f4
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      tests/lib/helper.php

+ 1
- 0
tests/lib/helper.php Vedi File

@@ -240,6 +240,7 @@ class Test_Helper extends PHPUnit_Framework_TestCase {
array(0, false, false, false),
array(0, false, \OC::$SERVERROOT . '/tests/data/lorem.txt', false),
array(filesize(\OC::$SERVERROOT . '/tests/data/lorem.txt'), true, \OC::$SERVERROOT . '/tests/data/lorem.txt', \OC::$SERVERROOT . '/tests/data/lorem-copy.txt'),
array(3670, true, \OC::$SERVERROOT . '/tests/data/testimage.png', \OC::$SERVERROOT . '/tests/data/testimage-copy.png'),
);
}
}

Loading…
Annulla
Salva