Skip to content

Commit 91f5daf

Browse files
committed
test: align import conflict diagnostic
1 parent 9b02dcd commit 91f5daf

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

phpunit/src/Python/PythonModuleTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace TypePhp\Tests\Python;
44

55
use PHPUnit\Framework\TestCase;
6-
use PhpParser\Error;
76
use TypePhp\CompilerTest;
87
use TypePhp\Exception\TestError;
98

@@ -123,7 +122,7 @@ public function testModuleStaticPropertySyntaxIsRejected(): void
123122

124123
public function testModuleAliasUsesPhpCaseInsensitiveConflictRules(): void
125124
{
126-
$this->expectException(Error::class);
125+
$this->expectException(TestError::class);
127126
$this->expectExceptionMessage('the name is already in use');
128127

129128
$this->compileFixture('alias-conflict.php');

0 commit comments

Comments
 (0)