test: align import conflict diagnostic

master
韩天峰 7 days ago
parent 9b02dcd693
commit 91f5daf457
  1. 3
      phpunit/src/Python/PythonModuleTest.php

@ -3,7 +3,6 @@
namespace TypePhp\Tests\Python; namespace TypePhp\Tests\Python;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use PhpParser\Error;
use TypePhp\CompilerTest; use TypePhp\CompilerTest;
use TypePhp\Exception\TestError; use TypePhp\Exception\TestError;
@ -123,7 +122,7 @@ final class PythonModuleTest extends TestCase
public function testModuleAliasUsesPhpCaseInsensitiveConflictRules(): void public function testModuleAliasUsesPhpCaseInsensitiveConflictRules(): void
{ {
$this->expectException(Error::class); $this->expectException(TestError::class);
$this->expectExceptionMessage('the name is already in use'); $this->expectExceptionMessage('the name is already in use');
$this->compileFixture('alias-conflict.php'); $this->compileFixture('alias-conflict.php');

Loading…
Cancel
Save