PHPExiftoolServiceProviderTest.php 990 B

1234567891011121314151617181920212223242526272829303132333435
  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;
  11. use PHPExiftool\PHPExiftoolServiceProvider;
  12. use Silex\Application;
  13. class PHPExiftoolServiceProviderTest extends \PHPUnit_Framework_TestCase
  14. {
  15. public function testRegister()
  16. {
  17. $app = $this->getApplication();
  18. $app->register(new PHPExiftoolServiceProvider);
  19. $this->assertInstanceOf('PHPExiftool\\Reader', $app['exiftool.reader']);
  20. $this->assertInstanceOf('PHPExiftool\\Writer', $app['exiftool.writer']);
  21. $this->assertInstanceOf('PHPExiftool\\Exiftool', $app['exiftool.processor']);
  22. $this->assertInstanceOf('PHPExiftool\\PreviewExtractor', $app['exiftool.preview-extractor']);
  23. }
  24. protected function getApplication()
  25. {
  26. return new Application();
  27. }
  28. }