tests/RollsOn/Situations/RollOnSituationTest.php
<?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;
}
}