| 1 | <?php |
||
| 12 | abstract class AbstractPlayerTest extends \PHPUnit_Framework_TestCase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @test |
||
| 16 | */ |
||
| 17 | public function testStringRepresentation() |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return array |
||
| 24 | */ |
||
| 25 | public function getSteps() |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param int $stepNumber |
||
| 38 | * |
||
| 39 | * @dataProvider getSteps |
||
| 40 | */ |
||
| 41 | abstract public function testPlay($stepNumber); |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param \GameDomain\Player\PlayerInterface $player |
||
| 45 | * @param int $stepNumber |
||
| 46 | * |
||
| 47 | * @return bool |
||
| 48 | */ |
||
| 49 | protected function play(PlayerInterface $player, $stepNumber) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return \GameDomain\Rule\AbstractRulesSet |
||
| 58 | */ |
||
| 59 | protected function getGameRules() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param int $stepNumber |
||
| 66 | * |
||
| 67 | * @return \GameDomain\Round\Step\Step |
||
| 68 | */ |
||
| 69 | protected function createStep($stepNumber) |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return \GameDomain\Player\PlayerInterface |
||
| 76 | */ |
||
| 77 | abstract protected function getPlayer(); |
||
| 78 | } |
||
| 79 |