Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/allure-framework/allure-phpunit/src/Internal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/allure-framework/allure-phpunit/src/Internal/TestInfo.php
<?php

declare(strict_types=1);

namespace Qameta\Allure\PHPUnit\Internal;

/**
 * @internal
 */
final class TestInfo
{
    /**
     * @param string            $test
     * @param class-string|null $class
     * @param string|null       $method
     * @param string|null       $dataLabel
     * @param string|null       $host
     * @param string|null       $thread
     */
    public function __construct(
        private string $test,
        private ?string $class,
        private ?string $method,
        private ?string $dataLabel,
        private ?string $host,
        private ?string $thread,
    ) {
    }

    public function getTest(): string
    {
        return $this->test;
    }

    /**
     * @return class-string|null
     */
    public function getClass(): ?string
    {
        return $this->class;
    }

    public function getMethod(): ?string
    {
        return $this->method;
    }

    public function getDataLabel(): ?string
    {
        return $this->dataLabel;
    }

    public function getFullName(): ?string
    {
        return isset($this->class, $this->method)
            ? "{$this->class}::{$this->method}"
            : null;
    }

    public function getName(): string
    {
        return $this->getFullName() ?? $this->getTest();
    }

    public function getHost(): ?string
    {
        return $this->host;
    }

    public function getThread(): ?string
    {
        return $this->thread;
    }
}

Spamworldpro Mini