"foo" is more similar to the unit test from the 'Java' version *
  • "thirtyDays" is more similar to the TextTest from the 'Java' version * * I suggest choosing one style to develop and deleting the other. */ class ApprovalTest extends TestCase { public function testFoo(): void { $items = [new Item('foo', 0, 0)]; $app = new GildedRose($items); $app->updateQuality(); Approvals::verifyList($items); } public function testThirtyDays(): void { ob_start(); $argv = ["", "30"]; include(__DIR__.'/../fixtures/texttest_fixture.php'); $output = ob_get_clean(); Approvals::approveString($output); } }