connect() public method

One slot can be connected with multiple signals by calling this method multiple times.
public connect ( string $signalClassName, string $signalName, mixed $slotClassNameOrObject, string $slotMethodName = '', boolean $passSignalInformation = true ) : void
$signalClassName string Name of the class containing the signal
$signalName string Name of the signal
$slotClassNameOrObject mixed Name of the class containing the slot or the instantiated class or a Closure object
$slotMethodName string Name of the method to be used as a slot. If $slotClassNameOrObject is a Closure object, this parameter is ignored
$passSignalInformation boolean If set to TRUE, the last argument passed to the slot will be information about the signal (EmitterClassName::signalName)
return void
 /**
  * @test
  * @expectedException \InvalidArgumentException
  */
 public function connectWithSignalNameStartingWithEmitShouldNotBeAllowed()
 {
     $mockSignal = $this->getMockBuilder('stdClass')->setMethods(['emitSomeSignal'])->getMock();
     $mockSlot = $this->getMockBuilder('stdClass')->setMethods(['someSlotMethod'])->getMock();
     $dispatcher = new Dispatcher();
     $dispatcher->connect(get_class($mockSignal), 'emitSomeSignal', get_class($mockSlot), 'someSlotMethod', false);
 }