StupidPlayerTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 2
Metric Value
wmc 2
cbo 2
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testPlay() 0 4 1
A getPlayer() 0 4 1
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