for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Consolidation\TestUtils;
use Consolidation\Bootstrap\BootInterface;
use Consolidation\Bootstrap\BootstrapSelectionInterface;
class TestBoot implements BootInterface, BootstrapSelectionInterface
{
protected $path;
protected $siteSelector;
protected $version;
protected $services;
public function __construct($path, $version, $services)
$this->path = $path;
$this->version = $version;
$this->services = $services;
}
/**
* @inheritdoc
*/
public function isValid($path)
return $this->path == $path;
public function getBootstrap($path, $siteSelector = null)
if (!$this->isValid($path)) {
throw new \RuntimeException('Invalid path passed to getBootstrap().');
$this->siteSelector = $siteSelector;
// Normally we would instantiate a new BootInterface and pass
// the $path to its constructor.
return $this;
public function getPath()
return $this->path;
public function getSiteSelector()
return $this->siteSelector;
public function getFrameworkVersion()
return $this->version;
public function getServiceFeatures()
return $this->services;
public function boot($serviceFeatures, $siteSelector = null)
return true;
public function terminate()