Completed
Push — master ( 9c2e57...960d6d )
by Zura
03:25
created

it_can_output_several_promocodes_as_array()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Gabievi\Promocodes\Tests;
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