2 namespace Civi\Test\CiviEnvBuilder
;
4 class SqlFileStep
implements StepInterface
{
8 * SqlFileStep constructor.
11 public function __construct($file) {
16 public function getSig() {
17 return implode(' ', array(
19 filemtime($this->file
),
20 filectime($this->file
),
24 public function isValid() {
25 return is_file($this->file
) && is_readable($this->file
);
28 public function run($ctx) {
29 /** @var $ctx \CiviEnvBuilder */
30 if (\Civi\Test
::execute(@file_get_contents
($this->file
)) === FALSE) {
31 throw new \
RuntimeException("Cannot load {$this->file}. Aborting.");