How to mark a test case as fail on LambdaTest?

Please let me know how I can mark a test case as fail on LambdaTest?

Hi Toby,

Pass the following in the try block, refer to the snippet below:

self::$driver->executeScript("lambda-status=passed");

You can also refer to LambdaTest hooks: Lambda Hooks For Selenium Automation | LambdaTest | LambdaTest