/**
  * Initializes tester.
  *
  * @param ContainerInterface $container
  */
 public function __construct(ContainerInterface $container)
 {
     $this->moodledispatcher = $container->get('behat.event_dispatcher');
     parent::__construct($container);
 }
 public function __construct(ContainerInterface $container)
 {
     parent::__construct($container);
     $this->screenshotComparator = $container->get('behat.perceptual_diff_extension.comparator.screenshot');
     $this->failOnDiff = $container->getParameter('behat.perceptual_diff_extension.fail_on_diff');
 }