ReaderTest.php 936 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * This file is part of the PHPExiftool package.
  4. *
  5. * (c) Alchemy <support@alchemy.fr>
  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 PHPExiftool\Test\Server;
  11. require_once __DIR__ . '/../AbstractReaderTest.php';
  12. use PHPExiftool\Test\AbstractReaderTest;
  13. use PHPExiftool\ExiftoolServer;
  14. use PHPExiftool\Reader;
  15. use PHPExiftool\RDFParser;
  16. class ReaderTest extends AbstractReaderTest
  17. {
  18. protected $exiftool;
  19. protected function setUp()
  20. {
  21. $this->exiftool = new ExiftoolServer();
  22. $this->exiftool->start();
  23. parent::setUp();
  24. }
  25. protected function tearDown()
  26. {
  27. parent::tearDown();
  28. if ($this->exiftool) {
  29. $this->exiftool->stop();
  30. }
  31. }
  32. protected function getReader()
  33. {
  34. return new Reader($this->exiftool, new RDFParser());
  35. }
  36. }