|
|
|
@ -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'); |
|
|
|
|