jaroslavtyc/drd-plus-rolls-on

View on GitHub
tests/RollsOn/Situations/RollOnSituationTest.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);

namespace DrdPlus\Tests\RollsOn\Situations;

use Granam\DiceRolls\Templates\Rolls\Roll2d6DrdPlus;
use Granam\TestWithMockery\TestWithMockery;

abstract class RollOnSituationTest extends TestWithMockery
{
    /**
     * @test
     */
    abstract public function I_can_use_it();

    /**
     * @param $value
     * @return \Mockery\MockInterface|Roll2d6DrdPlus
     */
    protected function createRoll2d6DrdPlus($value)
    {
        $roll2d6DrdPlus = $this->mockery(Roll2d6DrdPlus::class);
        $roll2d6DrdPlus->shouldReceive('getValue')
            ->andReturn($value);

        return $roll2d6DrdPlus;
    }
}