<?php require_once __DIR__ . '/../vendor/autoload.php'; use OpenCFP\Application; use OpenCFP\Environment; $basePath = realpath(dirname(__DIR__)); $environment = Environment::fromEnvironmentVariable(); $app = new Application($basePath, $environment); $app->run();
/** @test */ public function it_should_be_resolvable_from_environment_variable() { $_SERVER['CFP_ENV'] = 'testing'; $this->assertEquals('testing', Environment::fromEnvironmentVariable()); }