22 lines
357 B
PHP
22 lines
357 B
PHP
|
<?php
|
||
|
|
||
|
namespace Zoomyboy\Tex;
|
||
|
|
||
|
use PHPUnit\Framework\Assert;
|
||
|
|
||
|
abstract class Document
|
||
|
{
|
||
|
public function assertHasContent(string $content): void
|
||
|
{
|
||
|
Assert::assertStringContainsString(
|
||
|
$content,
|
||
|
$this->renderBody(),
|
||
|
);
|
||
|
}
|
||
|
|
||
|
protected function renderBody(): string
|
||
|
{
|
||
|
return 'gggggMax';
|
||
|
}
|
||
|
}
|