1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Remove instanceof test

This commit is contained in:
Brown 2020-07-24 16:09:32 -04:00
parent b1e583ebed
commit 309c39bc59

View File

@ -433,27 +433,6 @@ class PsalmInternalAnnotationTest extends TestCase
}', }',
'error_message' => 'InternalClass', 'error_message' => 'InternalClass',
], ],
'internalClassWithInstanceOf' => [
'<?php
namespace A\B {
interface Bar {};
/**
* @internal
* @psalm-internal A\B
*/
class Foo { }
}
namespace A\C {
class Bat {
public function batBat(\A\B\Bar $bar) : void {
$bar instanceOf \A\B\Foo;
}
}
}',
'error_message' => 'A\B\Foo is internal to A\B',
],
'internalClassWithExtends' => [ 'internalClassWithExtends' => [
'<?php '<?php
namespace A\B { namespace A\B {