Completed
Push — master ( e7b516...6a1685 )
by Zura
10:42
created

it_can_output_several_promocodes_as_array()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Gabievi\Promocodes\Test;
4
5
use Promocodes;
6
7
class OutputRandomPromocodesTest extends TestCase
8
{
9
    /** @test */
10
    public function it_will_output_only_one_code_without_parameter()
11
    {
12
        $promocodes = Promocodes::output();
13
14
        $this->assertCount(1, $promocodes);
15
    }
16
17
    /** @test */
18
    public function it_can_output_several_promocodes_as_array()
19
    {
20
        $promocodes = Promocodes::output(10);
21
22
        $this->assertCount(10, $promocodes);
23
    }
24
}
25