FileManagerTest.php 753 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * This file is part of the PHP-FFmpeg-video-streaming package.
  4. *
  5. * (c) Amin Yazdanpanah <contact@aminyazdanpanah.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Tests\FFMpegStreaming;
  11. use Streaming\File;
  12. class FileManagerTest extends TestCase
  13. {
  14. public function testMakeDir()
  15. {
  16. $path = $this->srcDir . DIRECTORY_SEPARATOR . "test_make_dir";
  17. File::makeDir($path);
  18. $this->assertDirectoryExists($path);
  19. }
  20. public function testTmp()
  21. {
  22. $tmp_file = File::tmp();
  23. $tmp_dir = File::tmpDir();
  24. $this->assertIsString($tmp_file);
  25. $this->assertIsString($tmp_dir);
  26. }
  27. }