mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Use dedicated assertContainsOnlyInstancesOf assertion
This commit is contained in:
parent
62a1d0d12a
commit
abfceca3a9
@ -57,9 +57,7 @@ class TypeReconciliationTest extends TestCase
|
||||
);
|
||||
|
||||
if (is_array($reconciled->getTypes())) {
|
||||
foreach ($reconciled->getTypes() as $type) {
|
||||
$this->assertInstanceOf('Psalm\Type\Atomic', $type);
|
||||
}
|
||||
$this->assertContainsOnlyInstancesOf('Psalm\Type\Atomic', $reconciled->getTypes());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user