You are here

bootstrap.php in Flysystem - S3 2.0.x

Same filename and directory in other branches
  1. 8 tests/bootstrap.php

File

tests/bootstrap.php
View source
<?php

/**
 * @file
 * Searches for the core bootstrap file.
 */
$dir = __DIR__;

// Match against previous dir for Windows.
$previous_dir = '';
while ($dir = dirname($dir)) {

  // We've reached the root.
  if ($dir === $previous_dir) {
    break;
  }
  $previous_dir = $dir;
  if (is_file($dir . '/core/tests/bootstrap.php')) {
    require_once $dir . '/core/tests/bootstrap.php';
    return;
  }
}
throw new RuntimeException('Unable to load core bootstrap.php.');