Esempio n. 1
0
 public function testLogBroadcaster()
 {
     $broadcaster = new BroadcastManager();
     $broadcaster->setDefaultBroadcaster(new LogBroadcaster($this->getLogger()));
     $connection = $broadcaster->connection();
     $this->assertInstanceOf(BroadcasterInterface::class, $connection);
 }
 /**
  * @expectedException \InvalidArgumentException
  **/
 public function testBroadcastManagerWithUndefinedBroadcaster()
 {
     $broadcaster = new BroadcastManager();
     $broadcaster->add('logger', new LogBroadcaster($this->getLogger()));
     $broadcaster->connection('undefined');
 }