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