Exemplo n.º 1
0
 /**
  * Initialize client's storage
  *
  * @param StorageService $storageService
  * @param QueueService   $queueService
  * @param GeoService     $geoService
  * @param CacheService|null   $cacheService
  */
 public function __construct(StorageService $storageService, QueueService $queueService, GeoService $geoService, CacheService $cacheService = null)
 {
     $this->clients = new \SplObjectStorage();
     $this->storageService = $storageService;
     $this->queueService = $queueService;
     $this->geoService = $geoService;
     $this->cacheService = $cacheService;
     echo Messenger::start();
 }
Exemplo n.º 2
0
 /**
  * Start message test
  */
 public function testStart()
 {
     $this->assertInternalType('string', Messenger::start());
 }