FileInfoArrayTest.php 681 B

12345678910111213141516171819202122232425
  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. * @link http://www.gediminasm.org
  10. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  11. */
  12. class FileInfoArrayTest extends \PHPUnit_Framework_TestCase
  13. {
  14. /**
  15. * @expectedException RuntimeException
  16. */
  17. public function test_constructor_ifKeysAreNotValidOrSomeAreMissingThrowException()
  18. {
  19. $fileInfo = new FileInfoArray(array());
  20. }
  21. }