StupidPlayerTest::getPlayer()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Tests\Unit\GameDomain\Player\Players;
4
5
use GameDomain\Player\Players\StupidPlayer;
6
7
/**
8
 * StupidPlayer Test
9
 */
10
class StupidPlayerTest extends AbstractPlayerTest
11
{
12
    /**
13
     * {@inheritDoc}
14
     *
15
     * @dataProvider getSteps
16
     */
17
    public function testPlay($stepNumber)
18
    {
19
        $this->assertFalse($this->play($this->getPlayer(), $stepNumber));
20
    }
21
22
    /**
23
     * {@inheritDoc}
24
     */
25
    protected function getPlayer()
26
    {
27
        return new StupidPlayer();
28
    }
29
}
30