Test Failed
Push — main ( 6df04e...456b77 )
by Alexandra
11:41 queued 02:13
created

GildedRoseTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testUpdateQuality() 0 14 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AHJ\ApprovalTests\Tests\Example;
6
7
use AHJ\ApprovalTests\Approvals;
8
use PHPUnit\Framework\TestCase;
9
10
final class GildedRoseTest extends TestCase
11
{
12
    public function testUpdateQuality(): void
13
    {
14
        $input = [
15
            new Item('foo', 0, 1),
16
            new Item('bar', 1, 1),
17
            new Item('zero', 1, 0),
18
            new Item('zorg', 1, 100),
19
            new Item('zorg', 1, 50),
20
            new Item('knarf', 1, 50),
21
        ];
22
23
        $actual = (new GildedRose())->updateQuality($input);
24
25
        Approvals::create()->verifyList($input, $actual);
26
    }
27
}
28