for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ParaTest\Runners\PHPUnit;
/**
* Representation of test suite paths found in phpunit.xml.
*/
class SuitePath
{
const DEFAULT_SUFFIX = 'Test.php';
* @var string
protected $path;
protected $suffix;
* @var string[]s
protected $excludedPaths;
public function __construct(string $path, array $excludedPaths, string $suffix)
if (empty($suffix)) {
$suffix = self::DEFAULT_SUFFIX;
}
$this->path = $path;
$this->excludedPaths = $excludedPaths;
$this->suffix = $suffix;
* @return string
public function getPath(): string
return $this->path;
* @return string[]
public function getExcludedPaths(): array
return $this->excludedPaths;
public function getSuffix(): string
return $this->suffix;
public function getPattern(): string
return '|' . preg_quote($this->getSuffix()) . '$|';