PHP code example of cucumber / tag-expressions
1. Go to this page and download the library: Download cucumber/tag-expressions library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cucumber / tag-expressions example snippets
use Cucumber\TagExpressions\TagExpressionParser;
$expression = TagExpressionParser::parse('@smoke and not @ui');
$result = $expression->evaluate(['@smoke', '@cli'])