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

OutputRandomPromocodesTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A it_will_output_only_one_code_without_parameter() 0 6 1
A it_can_output_several_promocodes_as_array() 0 6 1
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