DiactorosFactoryTest.php 806 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.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 Symfony\Bridge\PsrHttpMessage\Tests\Factory;
  11. use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory;
  12. /**
  13. * @author Kévin Dunglas <dunglas@gmail.com>
  14. * @author Antonio J. García Lagar <aj@garcialagar.es>
  15. *
  16. * @group legacy
  17. */
  18. class DiactorosFactoryTest extends AbstractHttpMessageFactoryTest
  19. {
  20. protected function buildHttpMessageFactory()
  21. {
  22. if (!class_exists('Zend\Diactoros\ServerRequestFactory')) {
  23. $this->markTestSkipped('Zend Diactoros is not installed.');
  24. }
  25. return new DiactorosFactory();
  26. }
  27. }