TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
DispatcherTest Class Reference
Inheritance diagram for DispatcherTest:
UnitTestCase BaseTestCase

Public Member Functions

 connectAllowsForConnectingASlotWithASignal ()
 
 connectAlsoAcceptsObjectsInPlaceOfTheClassName ()
 
 connectAlsoAcceptsClosuresActingAsASlot ()
 
 dispatchPassesTheSignalArgumentsToTheSlotMethod ()
 
 dispatchRetrievesSlotInstanceFromTheObjectManagerIfOnlyAClassNameWasSpecified ()
 
 dispatchHandsOverArgumentsReturnedByAFormerSlot ()
 
 dispatchHandsOverArgumentsReturnedByAFormerSlotWithoutInterferingWithSignalSlotInformation ()
 
 dispatchHandsOverFormerArgumentsIfPreviousSlotDoesNotReturnAnything ()
 
 dispatchThrowsAnExceptionIfTheSlotReturnsNonArray ()
 
 dispatchThrowsAnExceptionIfTheSlotReturnsDifferentNumberOfItems ()
 
 dispatchThrowsAnExceptionIfTheSpecifiedClassOfASlotIsUnknown ()
 
 dispatchThrowsAnExceptionIfTheSpecifiedSlotMethodDoesNotExist ()
 
 dispatchPassesFirstArgumentContainingSlotInformationIfTheConnectionStatesSo ()
 
 connectThrowsInvalidArgumentExceptionIfSlotMethodNameIsEmptyAndSlotClassNameIsNoClosure ()
 
 dispatchReturnsEmptyArrayIfSignalNameAndOrSignalClassNameIsNotRegistered ()
 
 dispatchReturnsEmptyArrayIfSignalDoesNotProvideAnyArguments ()
 
 dispatchReturnsArgumentsArrayAsIsIfSignalIsNotRegistered ()
 
 dispatchThrowsInvalidSlotExceptionIfObjectManagerOfSignalSlotDispatcherIsNotSet ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $signalSlotDispatcher
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 25 of file DispatcherTest.php.

Member Function Documentation

connectAllowsForConnectingASlotWithASignal ( )
Test:

Definition at line 41 of file DispatcherTest.php.

connectAlsoAcceptsClosuresActingAsASlot ( )
Test:

Definition at line 77 of file DispatcherTest.php.

connectAlsoAcceptsObjectsInPlaceOfTheClassName ( )
Test:

Definition at line 59 of file DispatcherTest.php.

connectThrowsInvalidArgumentExceptionIfSlotMethodNameIsEmptyAndSlotClassNameIsNoClosure ( )
Test:

Definition at line 306 of file DispatcherTest.php.

dispatchHandsOverArgumentsReturnedByAFormerSlot ( )
Test:

Definition at line 125 of file DispatcherTest.php.

dispatchHandsOverArgumentsReturnedByAFormerSlotWithoutInterferingWithSignalSlotInformation ( )
Test:

Definition at line 152 of file DispatcherTest.php.

dispatchHandsOverFormerArgumentsIfPreviousSlotDoesNotReturnAnything ( )
Test:

Definition at line 179 of file DispatcherTest.php.

dispatchPassesFirstArgumentContainingSlotInformationIfTheConnectionStatesSo ( )
Test:

Definition at line 289 of file DispatcherTest.php.

dispatchPassesTheSignalArgumentsToTheSlotMethod ( )
Test:

Definition at line 94 of file DispatcherTest.php.

dispatchRetrievesSlotInstanceFromTheObjectManagerIfOnlyAClassNameWasSpecified ( )
Test:

Definition at line 108 of file DispatcherTest.php.

dispatchReturnsArgumentsArrayAsIsIfSignalIsNotRegistered ( )
Test:

Definition at line 332 of file DispatcherTest.php.

dispatchReturnsEmptyArrayIfSignalDoesNotProvideAnyArguments ( )
Test:

Definition at line 324 of file DispatcherTest.php.

dispatchReturnsEmptyArrayIfSignalNameAndOrSignalClassNameIsNotRegistered ( )
Test:

Definition at line 316 of file DispatcherTest.php.

dispatchThrowsAnExceptionIfTheSlotReturnsDifferentNumberOfItems ( )
Test:

Definition at line 233 of file DispatcherTest.php.

dispatchThrowsAnExceptionIfTheSlotReturnsNonArray ( )
Test:

Definition at line 211 of file DispatcherTest.php.

dispatchThrowsAnExceptionIfTheSpecifiedClassOfASlotIsUnknown ( )
Test:

Definition at line 255 of file DispatcherTest.php.

dispatchThrowsAnExceptionIfTheSpecifiedSlotMethodDoesNotExist ( )
Test:

Definition at line 270 of file DispatcherTest.php.

dispatchThrowsInvalidSlotExceptionIfObjectManagerOfSignalSlotDispatcherIsNotSet ( )
Test:

Definition at line 345 of file DispatcherTest.php.

setUp ( )
protected

Definition at line 32 of file DispatcherTest.php.

References BaseTestCase\getAccessibleMock().

Member Data Documentation

$signalSlotDispatcher
protected

Definition at line 30 of file DispatcherTest.php.