Example #1
0
 /**
  * Initializes context.
  * Every scenario gets its own context object.
  *
  * @param array $params context params (behat.yml)
  */
 public function __construct($params = [])
 {
     $this->networkFactory = new NetworkFactory();
     $this->planckFactory = new PlanckFactory();
     $adapter = new Local(__DIR__ . '');
     $this->filesystem = new Filesystem($adapter);
     $this->memoryFilesystem = new Filesystem(new MemoryAdapter());
     lineOut("\n<hr>___________________________________________________________________________");
     OriginalAndPlanckMap::reset();
     Plancks::reset();
     $me = $this;
     Emitter::addListener('testing.output', function ($event, $param = null) use($me) {
         $me->output = $param;
     });
 }