Behat\Gherkin\Filter\PathsFilter::__construct PHP Method

__construct() public method

Initializes filter.
public __construct ( array $paths )
$paths array List of approved paths
    public function __construct(array $paths)
    {
        $this->filterPaths = array_map(function ($realpath) {
            return rtrim($realpath, DIRECTORY_SEPARATOR) . (is_dir($realpath) ? DIRECTORY_SEPARATOR : '');
        }, array_filter(array_map('realpath', $paths)));
    }