FileInfoArrayTest.php 719B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Gedmo\Uploadable\FileInfo;
  3. use Gedmo\Uploadable\FileInfo\FileInfoArray;
  4. /**
  5. * These are tests for the FileInfoArray class of the Uploadable behavior
  6. *
  7. * @author Gustavo Falco <comfortablynumb84@gmail.com>
  8. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  9. * @package Gedmo.Uploadable.FileInfo
  10. * @link http://www.gediminasm.org
  11. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  12. */
  13. class FileInfoArrayTest extends \PHPUnit_Framework_TestCase
  14. {
  15. /**
  16. * @expectedException RuntimeException
  17. */
  18. public function test_constructor_ifKeysAreNotValidOrSomeAreMissingThrowException()
  19. {
  20. $fileInfo = new FileInfoArray(array());
  21. }
  22. }