Skip to content

Commit

Permalink
Merge pull request emilybache#534 from kudashevs/feature/fix_formatting
Browse files Browse the repository at this point in the history
Fix ApprovalTest code formatting
  • Loading branch information
codecop authored Apr 9, 2024
2 parents e4946ea + 5ed256a commit 85e18d3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions php/tests/ApprovalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

/**
* This unit test uses [Approvals](https://github.com/approvals/ApprovalTests.php).
*
*
* There are two test cases here with different styles:
* <li>"foo" is more similar to the unit test from the 'Java' version
* <li>"thirtyDays" is more similar to the TextTest from the 'Java' version
Expand All @@ -21,22 +21,22 @@
class ApprovalTest extends TestCase
{

public function testFoo(): void
public function testFoo(): void
{
$items = [new Item('foo', 0, 0)];
$app = new GildedRose($items);
$app->updateQuality();

Approvals::verifyList($items);
}
Approvals::verifyList($items);
}

public function testThirtyDays(): void
{
{
ob_start();

$argv = ["", "30"];
include(__DIR__.'/../fixtures/texttest_fixture.php');
include(__DIR__ . '/../fixtures/texttest_fixture.php');

$output = ob_get_clean();

Approvals::approveString($output);
Expand Down

0 comments on commit 85e18d3

Please sign in to comment.