for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Hyde\Testing;
use Illuminate\View\View;
use Hyde\Testing\Support\TestView;
/**
* Provides a more fluent way to test Blade views.
*/
trait TestsBladeViews
{
* Test a Blade view.
protected function test(string|View $view, $data = []): TestView
if ($view instanceof View) {
return new TestView($view);
}
return new TestView(view($view, $data));