Add JSON string and output support

Reviewed-on: #9
This commit was merged in pull request #9.
This commit is contained in:
2025-04-25 01:04:14 +00:00
parent 3b2d2ced98
commit 54b32bc906
12 changed files with 1419 additions and 245 deletions

View File

@@ -0,0 +1,37 @@
<?php
/**
* @author Daniel J. Summers <daniel@bitbadger.solutions>
* @license MIT
*/
declare(strict_types=1);
namespace Test\Integration;
use PHPUnit\Framework\TestCase;
/**
* Base test case class for document integration tests
*/
class DocumentTestCase extends TestCase
{
/**
* Clear the output buffer
*/
public function clearBuffer(): void
{
ob_clean();
ob_start();
}
/**
* Get the contents of the output buffer and end buffering
*
* @return string The contents of the output buffer
*/
public function getBufferContents(): string {
$contents = ob_get_contents();
ob_end_clean();
return $contents;
}
}