You are here

public function DiactorosFactoryTest::setup in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/psr-http-message-bridge/Tests/Factory/DiactorosFactoryTest.php \Symfony\Bridge\PsrHttpMessage\Tests\Factory\DiactorosFactoryTest::setup()

File

vendor/symfony/psr-http-message-bridge/Tests/Factory/DiactorosFactoryTest.php, line 30

Class

DiactorosFactoryTest
@author Kévin Dunglas <dunglas@gmail.com>

Namespace

Symfony\Bridge\PsrHttpMessage\Tests\Factory

Code

public function setup() {
  if (!class_exists('Zend\\Diactoros\\ServerRequestFactory')) {
    $this
      ->markTestSkipped('Zend Diactoros is not installed.');
  }
  $this->factory = new DiactorosFactory();
  $this->tmpDir = sys_get_temp_dir();
}