Esempio n. 1
0
 /**
  * @test
  * @expectedException \TYPO3\CMS\Extbase\SignalSlot\Exception\InvalidSlotException
  */
 public function dispatchThrowsInvalidSlotExceptionIfObjectManagerOfSignalSlotDispatcherIsNotSet()
 {
     $this->signalSlotDispatcher->_set('isInitialized', true);
     $this->signalSlotDispatcher->_set('objectManager', null);
     $this->signalSlotDispatcher->_set('slots', array('ClassA' => array('emitSomeSignal' => array(array()))));
     $this->assertSame(null, $this->signalSlotDispatcher->dispatch('ClassA', 'emitSomeSignal'));
 }
Esempio n. 2
0
 /**
  * @test
  * @expectedException \InvalidArgumentException
  */
 public function setForEmptyPropertyNameInAccessibleMockObjectThrowsException()
 {
     $this->accessibleMock->_set('', '');
 }
Esempio n. 3
0
 /**
  * @test
  */
 public function __toStringReturnsActualContent()
 {
     $this->mockResponse->_set('content', 'foo');
     $this->assertSame('foo', (string) $this->mockResponse);
 }