![]() 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-php-commons/test/Legacy/Annotation/ |
<?php declare(strict_types=1); namespace Qameta\Allure\Test\Legacy\Annotation; use PHPUnit\Framework\TestCase; use Qameta\Allure\Test\Attribute\AnnotationTestTrait; use Yandex\Allure\Adapter\Annotation\Title; /** * @covers \Yandex\Allure\Adapter\Annotation\Title */ class TitleTest extends TestCase { use AnnotationTestTrait; public function testValue_WithValue_ReturnsSameValue(): void { $title = $this->getTitleInstance('demoWithValue'); self::assertSame('a', $title->value); } public function testConvert_WithValue_ResultHasSameValue(): void { $title = $this->getTitleInstance('demoWithValue'); self::assertSame('a', $title->convert()->getValue()); } /** * @Title("a") */ protected function demoWithValue(): void { } /** * @psalm-suppress DeprecatedClass */ private function getTitleInstance(string $methodName): Title { return $this->getLegacyAttributeInstance(Title::class, $methodName); } }