. */ declare(strict_types=1); namespace SP\Tests\Mvc\View; use PHPUnit\Framework\Attributes\Group; use PHPUnit\Framework\TestCase; use SP\Mvc\View\OutputHandler; /** * Class OutputHandlerTest */ #[Group('unitary')] class OutputHandlerTest extends TestCase { public function testBufferedContent() { $callback = function () { echo 'Hello world'; echo 'test_output'; }; $outputHandler = new OutputHandler(); $out = $outputHandler->bufferedContent($callback); $this->assertEquals('Hello worldtest_output', $out); } }