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