Skip to content

Commit d66b3a2

Browse files
committed
Rename TemplateArgumentHintNotSupportedException exception
1 parent 738db07 commit d66b3a2

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/Exception/Definition/TemplateArgumentHintsNotSupportedTest.php renamed to tests/Exception/Definition/TemplateArgumentHintNotSupportedTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
use PHPUnit\Framework\Attributes\CoversClass;
88
use PHPUnit\Framework\Attributes\Group;
99
use PHPUnit\Framework\Attributes\TestDox;
10-
use TypeLang\Mapper\Exception\Definition\Template\Hint\TemplateArgumentHintsNotSupportedException;
10+
use TypeLang\Mapper\Exception\Definition\Template\Hint\TemplateArgumentHintNotSupportedException;
1111
use TypeLang\Parser\Node\Stmt\NamedTypeNode;
1212
use TypeLang\Parser\Node\Stmt\Template\TemplateArgumentNode;
1313

1414
#[Group('exception')]
15-
#[CoversClass(TemplateArgumentHintsNotSupportedException::class)]
16-
final class TemplateArgumentHintsNotSupportedTest extends DefinitionExceptionTestCase
15+
#[CoversClass(TemplateArgumentHintNotSupportedException::class)]
16+
final class TemplateArgumentHintNotSupportedTest extends DefinitionExceptionTestCase
1717
{
1818
#[TestDox('expected int<T> (0 hints), passed int<out T> (1 hint)')]
1919
public function testManyArgumentsPassedWithGenericType(): void
2020
{
21-
$this->expectException(TemplateArgumentHintsNotSupportedException::class);
21+
$this->expectException(TemplateArgumentHintNotSupportedException::class);
2222
$this->expectExceptionMessage('Template argument #1 (T) of "int<out T>" does not support any hints, but "out" were passed');
2323

2424
$type = self::parse('int<out T>');
@@ -27,7 +27,7 @@ public function testManyArgumentsPassedWithGenericType(): void
2727
$argument = $type->arguments?->first();
2828
assert($argument instanceof TemplateArgumentNode);
2929

30-
throw TemplateArgumentHintsNotSupportedException::becauseTooManyHints(
30+
throw TemplateArgumentHintNotSupportedException::becauseTooManyHints(
3131
argument: $argument,
3232
type: $type,
3333
);
@@ -45,7 +45,7 @@ public function testOfNonOwnArgument(): void
4545
$argument = $type->arguments?->first();
4646
assert($argument instanceof TemplateArgumentNode);
4747

48-
throw TemplateArgumentHintsNotSupportedException::becauseTooManyHints(
48+
throw TemplateArgumentHintNotSupportedException::becauseTooManyHints(
4949
argument: $argument,
5050
type: self::parse('another-type<out T>'),
5151
);
@@ -63,7 +63,7 @@ public function testManyArgumentsPassedWithBasicType(): void
6363
$argument = $type->arguments?->first();
6464
assert($argument instanceof TemplateArgumentNode);
6565

66-
throw TemplateArgumentHintsNotSupportedException::becauseTooManyHints(
66+
throw TemplateArgumentHintNotSupportedException::becauseTooManyHints(
6767
argument: $argument,
6868
type: $type,
6969
);

0 commit comments

Comments
 (0)