<?php ob_get_contents(): string|false
<?php include __DIR__."/../../resources/views/components/$view.php"; return tap(ob_get_contents(), function () { ob_end_clean(); }); }
<?php ob_start(); eval(Str::of($this->compiler->compileString($blade))->remove(['<?php', '?>'])); $output = ob_get_contents(); ob_end_clean(); $this->assertSame($expectedOutput, $output);