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

GildedRoseTest::testUpdateQuality()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 9
nc 1
nop 0
dl 0
loc 14
rs 9.9666
c 0
b 0
f 0
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