Exemple #1
0
function get_images($basedir, $scenario, $feature)
{
    $res = array();
    foreach (glob(get_behat_result_dir() . '/' . $scenario->file . '/' . $scenario->title . '/*.png') as $img) {
        $res[] = str_replace(get_behat_result_dir() . '/', '', $img);
    }
    sort($res);
    return $res;
}
Exemple #2
0
                <div class="btn-group">
                    <a href="screenshots.php?time=<?php 
echo $_REQUEST['time'];
?>
" class="btn btn-default">View
                        Screenshots</a>
                </div>

            </div>

        </div>

        <hr/>

        <?php 
$jsonfile = get_behat_result_dir() . '/log.json';
?>
        <?php 
if (file_exists($jsonfile)) {
    ?>

            <?php 
    $json = json_decode(file_get_contents($jsonfile));
    ?>

            <ul class="features">
                <?php 
    foreach ($json as $suiteName => $testClass) {
        ?>
                    <li>
Exemple #3
0
<?php

require __DIR__ . '/lib.php';
header("Content-type: image/png");
$file = $_GET['file'];
$realfile = realpath(get_behat_result_dir() . '/' . $file);
readfile($realfile);