Without CLI
On this page
#Without CLI
The PHP library is designed for use from the command line. It provides output specifically for this purpose.
However, you can run automated tests outside of the console.
#In a simple PHP file
Copied!
1require_once './vendor/autoload.php'; 2 3use Tests\Products as ProductsTests; 4 5$productsTests = new ProductsTests(); 6$productsTests->run(); 7 8$results = json_decode($productsTests->results(), true); 9 10echo '<pre>';11var_dump($results['stats'], JSON_PRETTY_PRINT);12echo '</pre>';