How to integrate with LambdaTest with PHPUnit?

How to integrate with LambdaTest?

Hi Toby,

Create a LambdaTestSetup.php file, you need to add your LambdaTest Grid URL and credentials in this file. Refer to the sample below:

//LambdaTestSetup.php
  php

require 'lib/globals.php';
require_once('vendor/autoload.php');

use Facebook\WebDriver\Remote\RemoteWebDriver;
use Facebook\WebDriver\WebDriverBy;
use PHPUnit\Framework\Assert;

class LambdaTestSetup extends PHPUnit\Framework\TestCase{
    protected static $driver;

    public function setUp(): void
    {        
        
        $url = "https://". $GLOBALS['LT_USERNAME'] .":" . $GLOBALS['LT_ACCESS_KEY'] ."@hub.lambdatest.com/wd/hub";

    $capabilities = array(
     ); 
        
        self::$driver = RemoteWebDriver::create($url, $capabilities);       
        
    }