tests/Tables/Theurgist/Spells/FormulaTest.php
/**
     * @param int $radiusValue
     * @param ModifierCode $modifierCode
     * @return MockInterface|Modifier
     */
@param int $radiusValue
@param ModifierCode $modifierCode
@return MockInterface|Modifier
@param int $radiusValue @param ModifierCode $modifierCode @return MockInterface|Modifier
private function createModifierWithRadius(int $radiusValue, ModifierCode $modifierCode)
    {
        $modifier = $this->mockery(Modifier::class);
        $modifier->shouldReceive('getSpellRadiusWithAddition')
            ->andReturn($this->createRadius($radiusValue));
        $modifier->shouldReceive('getModifierCode')
            ->andReturn($modifierCode);
        return $modifier;
    }
private function createModifierWithRadius ( int $ radiusValue , ModifierCode $ modifierCode ) { $ modifier = $ this -> mockery ( Modifier :: class ) ; $ modifier -> shouldReceive ( 'getSpellRadiusWithAddition' ) -> andReturn ( $ this -> createRadius ( $ radiusValue ) ) ; $ modifier -> shouldReceive ( 'getModifierCode' ) -> andReturn ( $ modifierCode ) ; return $ modifier ; }
@param int $radiusValue
 @param ModifierCode $modifierCode
 @return MockInterface|Modifier
@param int $radiusValue @param ModifierCode $modifierCode @return MockInterface|Modifier