Exemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     $this->logger = new Logger\SpyLogger();
     $this->normalizer = $this->getMock(Normalizer::class);
     $this->registry = new DriverRegistry($this->normalizer, $this->logger);
 }
Exemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     remove_filter(magnify_hook('driver_enabled'), '_magnify_disable_inactive_drivers');
     $this->logger = new Logger\SpyLogger();
     $this->driver = $this->getMock(Driver::class);
     $this->normalizer = $this->getMock(Normalizer::class);
     $this->handler = new SyncHandler($this->driver, $this->normalizer, $this->logger);
     $this->handler->connect();
 }