public function testSetIsFinalThrowsExceptionForInterface()
{
$php = '<?php
interface Foo {}
';
$reflection = (new ClassReflector(new StringSourceLocator($php)))->reflect('Foo');
$this->expectException(NotAClassReflection::class);
$reflection->setFinal(true);
}