KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/irtiweb/CATS/vendor/behat/mink-browserkit-driver/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/irtiweb/CATS/vendor/behat/mink-browserkit-driver/tests/app.php
<?php

namespace app;

$app = new \Silex\Application();
$app->register(new \Silex\Provider\SessionServiceProvider());

$def = realpath(__DIR__.'/../vendor/behat/mink/driver-testsuite/web-fixtures');
require_once $def . '/utils.php';

$ovr = realpath(__DIR__.'/web-fixtures');
$cbk = function ($file) use ($app, $def, $ovr) {
    $file = str_replace('.file', '.php', $file);
    $path = file_exists($ovr.'/'.$file) ? $ovr.'/'.$file : $def.'/'.$file;
    $resp = null;

    ob_start();
    include($path);
    $content = ob_get_clean();

    if ($resp) {
        if ('' === $resp->getContent()) {
            $resp->setContent($content);
        }

        return $resp;
    }

    return $content;
};

$app->get('/{file}', $cbk)->assert('file', '.*');
$app->post('/{file}', $cbk)->assert('file', '.*');

$app['debug'] = true;
$app['exception_handler']->disable();
$app['session.test'] = true;

return $app;

Anon7 - 2021