tests/Tables/Theurgist/AbstractTheurgistTableTest.php
/**
     * @param string $mandatoryParameter
     * @param string|AbstractTheurgistCode $codeClass
     * @throws \ReflectionException
     */
@param string $mandatoryParameter
@param string|AbstractTheurgistCode $codeClass
@throws \ReflectionException
@param string $mandatoryParameter @param string|AbstractTheurgistCode $codeClass @throws \ ReflectionException
protected function I_can_get_mandatory_parameter(string $mandatoryParameter, string $codeClass): void
    {
        $getMandatoryParameter = StringTools::assembleGetterForName($mandatoryParameter);
        $parameterClass = $this->assembleParameterClassName($mandatoryParameter);
        $sut = $this->createSut();
        foreach ($codeClass::getPossibleValues() as $codeValue) {
            $expectedParameterValue = $this->getValueFromTable($sut, $codeValue, $mandatoryParameter);
            $expectedParameterObject = $this->createParameter($parameterClass, $expectedParameterValue);
            $parameterObject = $sut->$getMandatoryParameter($codeClass::getIt($codeValue));
            self::assertEquals($expectedParameterObject, $parameterObject);
        }
    }
protected function I_can_get_mandatory_parameter ( string $ mandatoryParameter , string $ codeClass ) : void { $ getMandatoryParameter = StringTools :: assembleGetterForName ( $ mandatoryParameter ) ; $ parameterClass = $ this -> assembleParameterClassName ( $ mandatoryParameter ) ; $ sut = $ this -> createSut ( ) ; foreach ( $ codeClass :: getPossibleValues ( ) as $ codeValue ) { $ expectedParameterValue = $ this -> getValueFromTable ( $ sut , $ codeValue , $ mandatoryParameter ) ; $ expectedParameterObject = $ this -> createParameter ( $ parameterClass , $ expectedParameterValue ) ; $ parameterObject = $ sut -> $ getMandatoryParameter ( $ codeClass :: getIt ( $ codeValue ) ) ; self :: assertEquals ( $ expectedParameterObject , $ parameterObject ) ; } }
@param string $mandatoryParameter
 @param string|AbstractTheurgistCode $codeClass
 @throws \ReflectionException
@param string $mandatoryParameter @param string|AbstractTheurgistCode $codeClass @throws \ ReflectionException