FizzNumberRuleTest::getRule()   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\FizzBuzzDomain\Rules;
4
5
use FizzBuzzDomain\Rules\FizzNumberRule;
6
7
/**
8
 * FizzNumberRule Test
9
 */
10
class FizzNumberRuleTest extends AbstractFizzBuzzRuleTest
11
{
12
    /**
13
     * @return \GameDomain\Rule\AbstractRule
14
     */
15
    public function getRule()
16
    {
17
        return new FizzNumberRule();
18
    }
19
20
    /**
21
     * @return array
22
     */
23
    public function getValidNumbers()
24
    {
25
        return array(
26
            array(3),
27
            array(9),
28
            array(12),
29
            array(90),
30
        );
31
    }
32
33
    /**
34
     * @return array
35
     */
36
    public function getIrrelevantNumbers()
37
    {
38
        return array(
39
            array(1),
40
            array(5),
41
            array(17),
42
            array(100),
43
        );
44
    }
45
}
46