mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-13 17:49:25 +00:00
Updated PHP version for PHP7.2+
Removed PHP5 (no longer supported) Renamed PHP7 to PHP - consistent with other kata Added the same helpers as other PHP Kata Updated the code to PHP7.2+ standard Didn't change GildedRose updateQuality method Updated GildedRoseTest (still failing) Added ApprovalTest (passing) - same text file as texttests / ThirtyDays / stdout.gr (only renamed).
This commit is contained in:
1 parent
fbe24e35b5
commit
ed7a787e4f
34 files changed
+5576
-1794
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests;
|
||||
|
||||
use ApprovalTests\Approvals;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ApprovalTest extends TestCase
|
||||
{
|
||||
public function testTestFixture(): void
|
||||
{
|
||||
$argv[0] = 'texttest_fixture.php';
|
||||
$argv[1] = 31;
|
||||
|
||||
ob_start();
|
||||
require_once __DIR__ . '/../fixtures/texttest_fixture.php';
|
||||
$output = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
Approvals::verifyString($output);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user