Your IP : 216.73.216.45


Current Path : /home/rtorresani/www/vendor/codeception/codeception/src/Codeception/Test/Loader/
Upload File :
Current File : //home/rtorresani/www/vendor/codeception/codeception/src/Codeception/Test/Loader/Cept.php

<?php

declare(strict_types=1);

namespace Codeception\Test\Loader;

use Codeception\Test\Cept as CeptFormat;

use function basename;

class Cept implements LoaderInterface
{
    /**
     * @var CeptFormat[]
     */
    protected array $tests = [];

    public function getPattern(): string
    {
        return '~Cept\.php$~';
    }

    public function loadTests(string $filename): void
    {
        $name = basename($filename, 'Cept.php');

        $cept = new CeptFormat($name, $filename);
        $this->tests[] = $cept;
    }

    /**
     * @return CeptFormat[]
     */
    public function getTests(): array
    {
        return $this->tests;
    }
}