for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\Browser\Test;
use Zenstruck\Browser\HttpBrowser;
use Zenstruck\Browser\KernelBrowser;
use Zenstruck\Browser\PantherBrowser;
/**
* @author Kevin Bond <[email protected]>
*/
trait HasBrowser
{
use HasHttpBrowser, HasKernelBrowser, HasPantherBrowser {
HasKernelBrowser::browser insteadof HasHttpBrowser;
HasKernelBrowser::browser as kernelBrowser;
HasHttpBrowser::browser as httpBrowser;
HasPantherBrowser::browser as pantherBrowser;
}
protected function browser(): void
throw new \BadMethodCallException(\sprintf('"%s" cannot be used when using the "HasBrowser" trait, use any of "kernelBrowser()", "httpBrowser()" or "pantherBrowser()" instead.', __METHOD__));