‪TYPO3CMS  11.5
TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest:

Public Member Functions

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

Protected Member Functions

 setUp ()
 

Protected Attributes

bool $resetSingletonInstances = true
 
ObjectManagerInterface ObjectProphecy $objectManagerProphecy
 
TYPO3 CMS Extbase SignalSlot Dispatcher PHPUnit Framework MockObject MockObject TYPO3 TestingFramework Core AccessibleObjectInterface $signalSlotDispatcher
 

Detailed Description

Test case

Definition at line 35 of file DispatcherTest.php.

Member Function Documentation

◆ connectAllowsForConnectingASlotWithASignal()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::connectAllowsForConnectingASlotWithASignal ( )
Test:

Definition at line 64 of file DispatcherTest.php.

◆ connectAlsoAcceptsClosuresActingAsASlot()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::connectAlsoAcceptsClosuresActingAsASlot ( )
Test:

Definition at line 100 of file DispatcherTest.php.

◆ connectAlsoAcceptsObjectsInPlaceOfTheClassName()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::connectAlsoAcceptsObjectsInPlaceOfTheClassName ( )
Test:

Definition at line 82 of file DispatcherTest.php.

◆ connectThrowsInvalidArgumentExceptionIfSlotMethodNameIsEmptyAndSlotClassNameIsNoClosure()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::connectThrowsInvalidArgumentExceptionIfSlotMethodNameIsEmptyAndSlotClassNameIsNoClosure ( )
Test:

Definition at line 305 of file DispatcherTest.php.

◆ dispatchHandsOverArgumentsReturnedByAFormerSlot()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::dispatchHandsOverArgumentsReturnedByAFormerSlot ( )
Test:

Definition at line 143 of file DispatcherTest.php.

◆ dispatchHandsOverArgumentsReturnedByAFormerSlotWithoutInterferingWithSignalSlotInformation()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::dispatchHandsOverArgumentsReturnedByAFormerSlotWithoutInterferingWithSignalSlotInformation ( )
Test:

Definition at line 168 of file DispatcherTest.php.

◆ dispatchHandsOverFormerArgumentsIfPreviousSlotDoesNotReturnAnything()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::dispatchHandsOverFormerArgumentsIfPreviousSlotDoesNotReturnAnything ( )
Test:

Definition at line 193 of file DispatcherTest.php.

◆ dispatchPassesFirstArgumentContainingSlotInformationIfTheConnectionStatesSo()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::dispatchPassesFirstArgumentContainingSlotInformationIfTheConnectionStatesSo ( )
Test:

Definition at line 291 of file DispatcherTest.php.

◆ dispatchPassesTheSignalArgumentsToTheSlotMethod()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::dispatchPassesTheSignalArgumentsToTheSlotMethod ( )
Test:

Definition at line 116 of file DispatcherTest.php.

◆ dispatchRetrievesSlotInstanceFromTheObjectManagerIfOnlyAClassNameWasSpecified()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::dispatchRetrievesSlotInstanceFromTheObjectManagerIfOnlyAClassNameWasSpecified ( )
Test:

Definition at line 130 of file DispatcherTest.php.

◆ dispatchReturnsArgumentsArrayAsIsIfSignalIsNotRegistered()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::dispatchReturnsArgumentsArrayAsIsIfSignalIsNotRegistered ( )
Test:

Definition at line 331 of file DispatcherTest.php.

◆ dispatchReturnsEmptyArrayIfSignalDoesNotProvideAnyArguments()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::dispatchReturnsEmptyArrayIfSignalDoesNotProvideAnyArguments ( )
Test:

Definition at line 323 of file DispatcherTest.php.

◆ dispatchReturnsEmptyArrayIfSignalNameAndOrSignalClassNameIsNotRegistered()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::dispatchReturnsEmptyArrayIfSignalNameAndOrSignalClassNameIsNotRegistered ( )
Test:

Definition at line 315 of file DispatcherTest.php.

◆ dispatchThrowsAnExceptionIfTheSlotReturnsDifferentNumberOfItems()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::dispatchThrowsAnExceptionIfTheSlotReturnsDifferentNumberOfItems ( )
Test:

Definition at line 244 of file DispatcherTest.php.

◆ dispatchThrowsAnExceptionIfTheSlotReturnsNonArray()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::dispatchThrowsAnExceptionIfTheSlotReturnsNonArray ( )
Test:

Definition at line 223 of file DispatcherTest.php.

◆ dispatchThrowsAnExceptionIfTheSpecifiedClassOfASlotIsUnknown()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::dispatchThrowsAnExceptionIfTheSpecifiedClassOfASlotIsUnknown ( )
Test:

Definition at line 265 of file DispatcherTest.php.

◆ dispatchThrowsAnExceptionIfTheSpecifiedSlotMethodDoesNotExist()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::dispatchThrowsAnExceptionIfTheSpecifiedSlotMethodDoesNotExist ( )
Test:

Definition at line 276 of file DispatcherTest.php.

◆ setUp()

TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::setUp ( )
protected

Definition at line 50 of file DispatcherTest.php.

Member Data Documentation

◆ $objectManagerProphecy

ObjectManagerInterface ObjectProphecy TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::$objectManagerProphecy
protected

Definition at line 44 of file DispatcherTest.php.

◆ $resetSingletonInstances

bool TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::$resetSingletonInstances = true
protected

Reset singletons created by subject

Definition at line 40 of file DispatcherTest.php.

◆ $signalSlotDispatcher

TYPO3 CMS Extbase SignalSlot Dispatcher PHPUnit Framework MockObject MockObject TYPO3 TestingFramework Core AccessibleObjectInterface TYPO3\CMS\Extbase\Tests\UnitDeprecated\SignalSlot\DispatcherTest::$signalSlotDispatcher
protected

Definition at line 48 of file DispatcherTest.php.