for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AHJ\ApprovalTests\Tests\Example;
use AHJ\ApprovalTests\CombinationApprovals;
use PHPUnit\Framework\TestCase;
final class GildedRoseCombinationsTest extends TestCase
{
public function testUpdateQualityWithCombinations(): void
$arguments = [
['foo', 'Aged Brie'],
[3],
[15],
];
CombinationApprovals::create()->verifyAllCombinations(
function (string $name, int $sellIn, int $quantity) {
$items = [new Item($name, $sellIn, $quantity)];
return (new GildedRose())->updateQuality($items);
},
$arguments
);
}