/**
  * @test
  * @expectedException \InvalidArgumentException
  */
 public function connectWithSignalNameStartingWithEmitShouldNotBeAllowed()
 {
     $mockSignal = $this->getMock('ClassA', array('emitSomeSignal'));
     $mockSlot = $this->getMock('ClassB', array('someSlotMethod'));
     $dispatcher = new \TYPO3\Flow\SignalSlot\Dispatcher();
     $dispatcher->connect(get_class($mockSignal), 'emitSomeSignal', get_class($mockSlot), 'someSlotMethod', FALSE);
 }
 /**
  * @test
  * @expectedException \InvalidArgumentException
  */
 public function connectWithSignalNameStartingWithEmitShouldNotBeAllowed()
 {
     $mockSignal = $this->getMockBuilder('stdClass')->setMethods(array('emitSomeSignal'))->getMock();
     $mockSlot = $this->getMockBuilder('stdClass')->setMethods(array('someSlotMethod'))->getMock();
     $dispatcher = new \TYPO3\Flow\SignalSlot\Dispatcher();
     $dispatcher->connect(get_class($mockSignal), 'emitSomeSignal', get_class($mockSlot), 'someSlotMethod', false);
 }