1
0
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:
Gabriel Caruso 2018-11-04 16:00:14 -02:00 committed by Matthew Brown
parent 62a1d0d12a
commit abfceca3a9

View File

@ -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());
}
}